mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-25 09:02:30 +00:00
add \n to log messages
This commit is contained in:
parent
869cb7a332
commit
9418f9c94c
13
src/hci.c
13
src/hci.c
@ -605,19 +605,26 @@ static int hci_power_control_on(){
|
|||||||
|
|
||||||
static void hci_power_control_off(){
|
static void hci_power_control_off(){
|
||||||
|
|
||||||
|
log_dbg("hci_power_control_off\n");
|
||||||
|
|
||||||
// close low-level device
|
// close low-level device
|
||||||
hci_stack.hci_transport->close(hci_stack.config);
|
hci_stack.hci_transport->close(hci_stack.config);
|
||||||
|
|
||||||
|
log_dbg("hci_power_control_off - hci_transport closed\n");
|
||||||
|
|
||||||
// power off
|
// power off
|
||||||
if (hci_stack.control && hci_stack.control->off){
|
if (hci_stack.control && hci_stack.control->off){
|
||||||
(*hci_stack.control->off)(hci_stack.config);
|
(*hci_stack.control->off)(hci_stack.config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_dbg("hci_power_control_off - control closed\n");
|
||||||
|
|
||||||
hci_stack.state = HCI_STATE_OFF;
|
hci_stack.state = HCI_STATE_OFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hci_power_control_sleep(){
|
static void hci_power_control_sleep(){
|
||||||
|
|
||||||
log_dbg("hci_power_control_sleep");
|
log_dbg("hci_power_control_sleep\n");
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// don't close serial port during sleep
|
// don't close serial port during sleep
|
||||||
@ -636,7 +643,7 @@ static void hci_power_control_sleep(){
|
|||||||
|
|
||||||
static int hci_power_control_wake(){
|
static int hci_power_control_wake(){
|
||||||
|
|
||||||
log_dbg("hci_power_control_wake");
|
log_dbg("hci_power_control_wake\n");
|
||||||
|
|
||||||
// wake on
|
// wake on
|
||||||
if (hci_stack.control && hci_stack.control->wake){
|
if (hci_stack.control && hci_stack.control->wake){
|
||||||
@ -884,6 +891,8 @@ void hci_run(){
|
|||||||
|
|
||||||
// switch mode
|
// switch mode
|
||||||
hci_power_control_off();
|
hci_power_control_off();
|
||||||
|
|
||||||
|
log_dbg("HCI_STATE_HALTING, emitting state\n");
|
||||||
hci_emit_state();
|
hci_emit_state();
|
||||||
log_dbg("HCI_STATE_HALTING, done\n");
|
log_dbg("HCI_STATE_HALTING, done\n");
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user