Talking Touch Tablet added to device
Dependencies: FATFileSystemv2 mbed
Fork of BlueUSB by
Diff: hci.cpp
- Revision:
- 1:9d655061fa1e
- Parent:
- 0:606b230e5b4a
--- a/hci.cpp Sat Apr 10 00:30:24 2010 +0000 +++ b/hci.cpp Tue Oct 30 11:42:47 2012 +0000 @@ -165,11 +165,11 @@ break; case HCI_OP_PIN_CODE_REPLY: - printf("Got pin reply\n"); + printf("Got pin reply\r\n"); break; default: - printf("Unrecognized Command %04X\n",cmd); + printf("Unrecognized Command %04X\r\n",cmd); break; } } @@ -207,7 +207,7 @@ if (!d) return ERR_HCI_DEVICE_NOT_FOUND; int handle = d->_handle; - printf("Disconnect from %d\n",handle); + printf("Disconnect from %d\r\n",handle); _state |= MASK_CREATE_CONNECTION; u8 buf[3]; buf[0] = handle; @@ -262,7 +262,7 @@ } if (!bt) { - printf("HCI::InquiryResult too many devices\n"); + printf("HCI::InquiryResult too many devices\r\n"); return; // Too many devices! } } @@ -303,9 +303,9 @@ if (info->status == 0) { d->_handle = info->handle; - printf("Connected on %04X\n",info->handle); + printf("Connected on %04X\r\n",info->handle); } else - printf("Connection failed with %d\n",info->status); + printf("Connection failed with %d\r\n",info->status); } void HCI::HCIRecv(const u8* data, int len) @@ -364,7 +364,7 @@ case HCI_EV_CMD_STATUS: { const char* errs = HCIErrStr(data[2]); - printf("Status %s %s\n",CmdStr(LE16(data+4)),errs); + printf("Status %s %s\r\n",CmdStr(LE16(data+4)),errs); } break; @@ -395,7 +395,7 @@ { printf("Can't open l2cap %d on ",l2capaddr->psm); printf(&l2capaddr->bdaddr); - printf("\n"); + printf("\r\n"); return ERR_HCI_DEVICE_NOT_FOUND; } l2capsock->btdevice = bt;