mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2026-11-17 02:25:42 +00:00
Allow optional comma separators for data items in terminal write
This commit is contained in:
1 parent
5c4cfa642a
commit
0b2f38c67d
1 file changed
+4
@@ -616,6 +616,10 @@ static int cmd_write(PROGRAMMER * pgm, struct avrpart * p,
|
||||
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
|
||||
errno = 0;
|
||||
data.ull = strtoull(argi, &end_ptr, 0);
|
||||
|
||||
Reference in new issue
Block a user