add printfs for spring board icon debugging, disable HCI logging as default

This commit is contained in:
matthias.ringwald 2009-09-30 19:25:56 +00:00
parent f606eded77
commit b48a17ffb3
3 changed files with 9 additions and 3 deletions

View File

@ -200,7 +200,7 @@ int main (int argc, const char * argv[]){
// use logger: format HCI_DUMP_PACKETLOGGER, HCI_DUMP_BLUEZ or HCI_DUMP_STDOUT
// hci_dump_open("/tmp/hci_dump.pklg", HCI_DUMP_PACKETLOGGER);
hci_dump_open(NULL, HCI_DUMP_STDOUT);
// hci_dump_open(NULL, HCI_DUMP_STDOUT);
// init HCI
hci_init(transport, &config, control);

View File

@ -6,6 +6,8 @@
#include "l2cap_signaling.h"
#include <string.h>
static char *l2cap_signaling_commands_format[] = {
"D", // 0x01 command reject: reason {cmd not understood (0), sig MTU exceeded (2:max sig MTU), invalid CID (4:req CID)}, data len, data
"22", // 0x02 connection request: PSM, Source CID

View File

@ -4,12 +4,13 @@
// Created by Matthias Ringwald on 8/15/09.
//
#include "../config.h"
#include "platform_iphone.h"
#include "../config.h"
#include "../SpringBoardAccess/SpringBoardAccess.h"
#include <stdio.h>
#ifdef USE_SPRINGBOARD
// update SpringBoard icons
@ -18,14 +19,17 @@ void platform_iphone_status_handler(BLUETOOTH_STATE state){
case BLUETOOTH_OFF:
SBA_removeStatusBarImage("BTstack");
SBA_removeStatusBarImage("BTstackActive");
printf("Bluetooth status: OFF");
break;
case BLUETOOTH_ON:
SBA_removeStatusBarImage("BTstackActive");
SBA_addStatusBarImage("BTstack");
printf("Bluetooth status: ON");
break;
case BLUETOOTH_ACTIVE:
SBA_removeStatusBarImage("BTstack");
SBA_addStatusBarImage("BTstackActive");
printf("Bluetooth status: ACTIVE");
break;
default:
break;