don't stop BTdaemon on power down/client disconnect

This commit is contained in:
matthias.ringwald 2011-01-07 20:34:53 +00:00
parent 15b09008ee
commit fe19fafb3a
2 changed files with 2 additions and 10 deletions

View File

@ -21,7 +21,8 @@ NEXT:
- DONE: stop all baseband connections on HCI_POWER_OFF
- DONE: handle HCI_POWER_ON and HCI_POWER_OFF in existing 4 states
- DONE: store data of remote db on every change
- don't stop BTdaemon on power down/client disconnect
- DONE: don't stop BTdaemon on power down/client disconnect
- handle transition for HCI_POWER_SLEEP and all HCI state transitions
- decide on configure flags
- clean up components

View File

@ -212,17 +212,8 @@ static void dummy_bluetooth_status_handler(BLUETOOTH_STATE state){
static void (*bluetooth_status_handler)(BLUETOOTH_STATE state) = dummy_bluetooth_status_handler;
static void daemon_no_connections_timeout(){
#if 1
#ifdef USE_LAUNCHD
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/1000);
hci_power_control( HCI_POWER_OFF);
#endif
#endif
}
static int btstack_command_handler(connection_t *connection, uint8_t *packet, uint16_t size){