Fix terminal write bug

Wouldn't write data properly after an integer >= 2 bytes was written
This commit is contained in:
MCUdude 2022-03-02 20:09:59 +01:00 committed by Joerg Wunsch
parent da315d7323
commit 1299d6b8bd
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ static int cmd_write(PROGRAMMER * pgm, struct avrpart * p,
};
} data = {.bytes_grown = 0, .size = 0, .is_float = false, .ll = 0, .is_signed = false};
for (i = start_offset; i < len + start_offset - data.bytes_grown; i++) {
for (i = start_offset; i < len + start_offset; i++) {
data.is_float = false;
data.size = 0;