Skip to content

Commit eab3dce

Browse files
luoliwoshangdeadprogram
authored andcommitted
fix/typo:makeESPFirmwareImage
1 parent 663a94f commit eab3dce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

builder/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe
10461046
// Special format for the ESP family of chips (parsed by the ROM
10471047
// bootloader).
10481048
result.Binary = filepath.Join(tmpdir, "main"+outext)
1049-
err := makeESPFirmareImage(result.Executable, result.Binary, outputBinaryFormat)
1049+
err := makeESPFirmwareImage(result.Executable, result.Binary, outputBinaryFormat)
10501050
if err != nil {
10511051
return result, err
10521052
}

builder/esp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ type espImageSegment struct {
2323
data []byte
2424
}
2525

26-
// makeESPFirmareImage converts an input ELF file to an image file for an ESP32 or
26+
// makeESPFirmwareImage converts an input ELF file to an image file for an ESP32 or
2727
// ESP8266 chip. This is a special purpose image format just for the ESP chip
2828
// family, and is parsed by the on-chip mask ROM bootloader.
2929
//
3030
// The following documentation has been used:
3131
// https://github.com/espressif/esptool/wiki/Firmware-Image-Format
3232
// https://github.com/espressif/esp-idf/blob/8fbb63c2a701c22ccf4ce249f43aded73e134a34/components/bootloader_support/include/esp_image_format.h#L58
3333
// https://github.com/espressif/esptool/blob/master/esptool.py
34-
func makeESPFirmareImage(infile, outfile, format string) error {
34+
func makeESPFirmwareImage(infile, outfile, format string) error {
3535
inf, err := elf.Open(infile)
3636
if err != nil {
3737
return err

0 commit comments

Comments
 (0)