mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 15:39:59 +00:00
stdin: drop unused blocking helper functions btstack_stdin_query_int and btstack_stdin_query_hex
This commit is contained in:
parent
cd7b9db232
commit
d198cb2001
@ -110,19 +110,3 @@ static int getstring(char *line, int size)
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t btstack_stdin_query_int(const char * fieldName){
|
|
||||||
printf("Please enter new int value for %s:\n", fieldName);
|
|
||||||
char buffer[80];
|
|
||||||
getstring(buffer, sizeof(buffer));
|
|
||||||
return atoi(buffer);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t btstack_stdin_query_hex(const char * fieldName){
|
|
||||||
printf("Please enter new hex value for %s:\n", fieldName);
|
|
||||||
char buffer[80];
|
|
||||||
getstring(buffer, sizeof(buffer));
|
|
||||||
uint32_t value;
|
|
||||||
sscanf(buffer, "%x", &value);
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -50,10 +50,6 @@ void btstack_stdin_setup(void (*stdin_handler)(btstack_data_source_t *_ds, btsta
|
|||||||
// gets called by main.c
|
// gets called by main.c
|
||||||
void btstack_stdin_reset(void);
|
void btstack_stdin_reset(void);
|
||||||
|
|
||||||
//
|
|
||||||
uint32_t btstack_stdin_query_int(const char * fieldName);
|
|
||||||
uint32_t btstack_stdin_query_hex(const char * fieldName);
|
|
||||||
|
|
||||||
#if defined __cplusplus
|
#if defined __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user