mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
posix-h4: reset stdin/stdout on exit
This commit is contained in:
parent
4245bf3de9
commit
113487d2e9
@ -200,6 +200,7 @@ static void trigger_shutdown(void){
|
||||
log_info("sigint_handler: shutting down");
|
||||
shutdown_triggered = true;
|
||||
hci_power_control(HCI_POWER_OFF);
|
||||
btstack_stdin_reset();
|
||||
}
|
||||
|
||||
static int led_state = 0;
|
||||
@ -399,5 +400,6 @@ int main(int argc, const char * argv[]){
|
||||
// go
|
||||
btstack_run_loop_execute();
|
||||
|
||||
btstack_stdin_reset();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user