mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-07 15:25:04 +00:00
Correctly initialize stopbits
This commit is contained in:
@@ -129,7 +129,10 @@ static char *decode_serial(char* s, int *baudrate, int *parity, int *datasize, i
|
||||
s++;
|
||||
*datasize = strtol(s, &s, 0);
|
||||
if (*s != '+')
|
||||
{
|
||||
*stopbits = 0;
|
||||
return s;
|
||||
}
|
||||
s++;
|
||||
*stopbits = strtol(s, &s, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user