mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-06 03:40:16 +00:00
skip spaces in input
This commit is contained in:
parent
32b4ceeded
commit
b2dcf56f3e
@ -1145,6 +1145,10 @@ static int ui_process_data_request(char buffer){
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ignore spaces
|
||||||
|
if (buffer == ' ') return 0;
|
||||||
|
|
||||||
int hex = hexForChar(buffer);
|
int hex = hexForChar(buffer);
|
||||||
if (hex < 0){
|
if (hex < 0){
|
||||||
printf("stdinprocess: invalid input 0x%02x\n", buffer);
|
printf("stdinprocess: invalid input 0x%02x\n", buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user