Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
gicking committed Aug 7, 2023
1 parent 7e44e8d commit 9fe62e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/bootloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,7 @@ uint8_t bsl_memWrite(HANDLE ptrPort, uint8_t physInterface, uint8_t uartMode, co

addrStart = image->memoryEntries[idxStart].address;
addrEnd = image->memoryEntries[idxEnd].address;
//printf("addrStart: 0x%x - addrEnd 0x%x\n", addrStart, addrEnd);

// loop over memory block and upload in pages of max. 128B
addrPage = addrStart;
Expand Down
8 changes: 4 additions & 4 deletions src/hexfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void import_file_s19(const char *filename, MemoryImage_s *image, const uint8_t v
fread(fileBuf, fileLen, sizeof(char), fp);

// convert hexfile in buffer to memory image
import_buffer_s19((uint8_t*) fileBuf, image, verbose);
import_buffer_s19((uint8_t*) fileBuf, image, MUTE);

// release memory for file import
free(fileBuf);
Expand Down Expand Up @@ -393,7 +393,7 @@ void import_file_ihx(const char *filename, MemoryImage_s *image, const uint8_t v
fread(fileBuf, fileLen, sizeof(char), fp);

// convert hexfile in buffer to memory image
import_buffer_ihx((uint8_t*) fileBuf, image, verbose);
import_buffer_ihx((uint8_t*) fileBuf, image, MUTE);

// release memory for file import
free(fileBuf);
Expand Down Expand Up @@ -564,7 +564,7 @@ void import_file_txt(const char *filename, MemoryImage_s *image, const uint8_t v
fread(fileBuf, fileLen, sizeof(char), fp);

// convert hexfile in buffer to memory image
import_buffer_txt((uint8_t*) fileBuf, image, verbose);
import_buffer_txt((uint8_t*) fileBuf, image, MUTE);

// release memory for file import
free(fileBuf);
Expand Down Expand Up @@ -689,7 +689,7 @@ void import_file_bin(const char *filename, const MEMIMAGE_ADDR_T addrStart, Memo
fread(fileBuf, fileLen, sizeof(char), fp);

// convert hexfile in buffer to memory image
import_buffer_bin((uint8_t*) fileBuf, fileLen, addrStart, image, verbose);
import_buffer_bin((uint8_t*) fileBuf, fileLen, addrStart, image, MUTE);

// release memory for file import
free(fileBuf);
Expand Down

0 comments on commit 9fe62e2

Please sign in to comment.