static void sigint_handler(int param){ #ifndef _WIN32 // reset anyway btstack_stdin_reset(); #endif log_info(" <= SIGINT received, shutting down..\n"); hci_power_control(HCI_POWER_OFF); hci_close(); log_info("Good bye, see you.\n"); exit(0); }
static void sigint_handler(int param){ UNUSED(param); printf("CTRL-C - SIGINT received, shutting down..\n"); log_info("sigint_handler: shutting down"); // reset anyway btstack_stdin_reset(); // power down hci_power_control(HCI_POWER_OFF); hci_close(); log_info("Good bye, see you.\n"); exit(0); }