mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-20 14:55:09 +03:00
I found a nasty bug I made that also could make the bootloader hang. This fixes it. I should not have redefined the blocksize variable to make the output look good. It screewed up the flash...
This commit is contained in:
parent
90dc5f5dd1
commit
42f28a7089
1 changed files with 5 additions and 4 deletions
|
@ -883,11 +883,12 @@ int main()
|
||||||
BlockCount = 0;
|
BlockCount = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
firmwareWritten += 8; // 4K blocks
|
firmwareWritten += 4; // 4K blocks
|
||||||
|
|
||||||
lcd_rect(INDENT_WIDTH, 6*FH+4, 202, 4);
|
lcd_rect( 3, 6*FH+4, 204, 7);
|
||||||
lcd_hline(INDENT_WIDTH, 6*FH+5, (200*firmwareWritten/(FlashSize-64)), FORCE);
|
lcd_hline(5, 6*FH+6, (200*2*firmwareWritten-32)/(FlashSize), FORCE);
|
||||||
lcd_hline(INDENT_WIDTH, 6*FH+6, (200*firmwareWritten/(FlashSize-64)), FORCE);
|
lcd_hline(5, 6*FH+7, (200*2*firmwareWritten-32)/(FlashSize), FORCE);
|
||||||
|
lcd_hline(5, 6*FH+8, (200*2*firmwareWritten-32)/(FlashSize), FORCE);
|
||||||
|
|
||||||
fr = f_read(&FlashFile, (BYTE *)Block_buffer, sizeof(Block_buffer), &BlockCount);
|
fr = f_read(&FlashFile, (BYTE *)Block_buffer, sizeof(Block_buffer), &BlockCount);
|
||||||
if (BlockCount == 0) {
|
if (BlockCount == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue