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
parent 0d58adb10a
commit df6e2eea12
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}; } 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.is_float = false;
data.size = 0; data.size = 0;