mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-02 07:20:16 +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");
|
log_info("sigint_handler: shutting down");
|
||||||
shutdown_triggered = true;
|
shutdown_triggered = true;
|
||||||
hci_power_control(HCI_POWER_OFF);
|
hci_power_control(HCI_POWER_OFF);
|
||||||
|
btstack_stdin_reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
static int led_state = 0;
|
static int led_state = 0;
|
||||||
@ -399,5 +400,6 @@ int main(int argc, const char * argv[]){
|
|||||||
// go
|
// go
|
||||||
btstack_run_loop_execute();
|
btstack_run_loop_execute();
|
||||||
|
|
||||||
|
btstack_stdin_reset();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user