mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 06:32:43 +00:00
btstack_stdio_esp32: warn on stdin setup without prior call to btstack_stdio_init
This commit is contained in:
parent
a8a70d9170
commit
ce2cb32808
@ -194,6 +194,9 @@ void btstack_stdio_init() {
|
||||
}
|
||||
|
||||
void btstack_stdin_setup(void (*handler)(char c)){
|
||||
if (btstack_stdio_initialized == false){
|
||||
ESP_LOGE(TAG, "to enable support for console input, call btstack_stdio_init first");
|
||||
}
|
||||
// set handler
|
||||
stdin_handler = handler;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user