mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-29 03:32:49 +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;
|
||||
}
|
||||
|
||||
// ignore spaces
|
||||
if (buffer == ' ') return 0;
|
||||
|
||||
int hex = hexForChar(buffer);
|
||||
if (hex < 0){
|
||||
printf("stdinprocess: invalid input 0x%02x\n", buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user