mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
correct reporting of daemon timeouts
This commit is contained in:
parent
a5fc9b71d1
commit
9ddb5534ef
@ -85,12 +85,12 @@ static void (*bluetooth_status_handler)(BLUETOOTH_STATE state) = dummy_bluetooth
|
||||
|
||||
static void daemon_no_connections_timeout(){
|
||||
#ifdef USE_LAUNCHD
|
||||
printf("No connection for %u seconds -> POWER OFF and quit\n", DAEMON_NO_CONNECTION_TIMEOUT);
|
||||
printf("No connection for %u seconds -> POWER OFF and quit\n", DAEMON_NO_CONNECTION_TIMEOUT/1000);
|
||||
hci_power_control( HCI_POWER_OFF);
|
||||
hci_close();
|
||||
exit(0);
|
||||
#else
|
||||
printf("No connection for %u seconds -> POWER OFF\n", DAEMON_NO_CONNECTION_TIMEOUT);
|
||||
printf("No connection for %u seconds -> POWER OFF\n", DAEMON_NO_CONNECTION_TIMEOUT/1000);
|
||||
hci_power_control( HCI_POWER_OFF);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user