mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-13 01:14:56 +00:00
Allow optional comma separators for data items in terminal write
This commit is contained in:
@@ -616,6 +616,10 @@ static int cmd_write(PROGRAMMER * pgm, struct avrpart * p,
|
|||||||
data.str_ptr = NULL;
|
data.str_ptr = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// remove trailing comma to allow cut and paste of lists
|
||||||
|
if(arglen > 0 && argi[arglen-1] == ',')
|
||||||
|
argi[--arglen] = 0;
|
||||||
|
|
||||||
// Try integers and assign data size
|
// Try integers and assign data size
|
||||||
errno = 0;
|
errno = 0;
|
||||||
data.ull = strtoull(argi, &end_ptr, 0);
|
data.ull = strtoull(argi, &end_ptr, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user