btstack_stdio_esp32: warn on stdin setup without prior call to btstack_stdio_init

This commit is contained in:
Matthias Ringwald 2023-04-04 12:01:16 +02:00
parent a8a70d9170
commit ce2cb32808

View File

@ -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;
}