mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-13 17:34:56 +00:00
Ensure +0x...f does not strip suffix f in terminal write
This commit is contained in:
@@ -447,7 +447,7 @@ static int cmd_write(PROGRAMMER * pgm, struct avrpart * p,
|
|||||||
argi[--arglen] = '\0';
|
argi[--arglen] = '\0';
|
||||||
data.size = 4;
|
data.size = 4;
|
||||||
} else if ((suffix == 'F') &&
|
} else if ((suffix == 'F') &&
|
||||||
strncmp(argi, "0x", 2) != 0 && strncmp(argi, "-0x", 3) != 0) {
|
strncmp(argi, "0x", 2) && strncmp(argi, "-0x", 3) && strncmp(argi, "+0x", 3)) {
|
||||||
argi[--arglen] = '\0';
|
argi[--arglen] = '\0';
|
||||||
data.size = 4;
|
data.size = 4;
|
||||||
} else if (suffix == 'H' && lsuffix == 'H') {
|
} else if (suffix == 'H' && lsuffix == 'H') {
|
||||||
|
|||||||
Reference in New Issue
Block a user