stdin: drop unused blocking helper functions btstack_stdin_query_int and btstack_stdin_query_hex

This commit is contained in:
Matthias Ringwald 2016-11-30 11:10:13 +01:00
parent cd7b9db232
commit d198cb2001
2 changed files with 0 additions and 20 deletions

View File

@ -110,19 +110,3 @@ static int getstring(char *line, int size)
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;
}

View File

@ -50,10 +50,6 @@ void btstack_stdin_setup(void (*stdin_handler)(btstack_data_source_t *_ds, btsta
// gets called by main.c
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
}
#endif