From a660a353d3d901aaddfcc8ecb534f871f2e67c9e Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Wed, 3 Apr 2013 19:42:24 +0200 Subject: [PATCH] Fixed comment after formatting --- SPP.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/SPP.cpp b/SPP.cpp index aaf449ab..3009ba2b 100644 --- a/SPP.cpp +++ b/SPP.cpp @@ -732,8 +732,7 @@ void SPP::print(const String &str) { uint8_t length = str.length(); if (length > (sizeof (l2capoutbuf) - 4)) length = sizeof (l2capoutbuf) - 4; - l2capoutbuf[0] = rfcommChannelConnection | 0 | 0 | extendAddress; - ; // RFCOMM Address + l2capoutbuf[0] = rfcommChannelConnection | 0 | 0 | extendAddress; // RFCOMM Address l2capoutbuf[1] = RFCOMM_UIH; // RFCOMM Control l2capoutbuf[2] = length << 1 | 1; // Length uint8_t i = 0; @@ -750,8 +749,7 @@ void SPP::print(const char* str) { uint8_t length = strlen(str); if (length > (sizeof (l2capoutbuf) - 4)) length = sizeof (l2capoutbuf) - 4; - l2capoutbuf[0] = rfcommChannelConnection | 0 | 0 | extendAddress; - ; // RFCOMM Address + l2capoutbuf[0] = rfcommChannelConnection | 0 | 0 | extendAddress; // RFCOMM Address l2capoutbuf[1] = RFCOMM_UIH; // RFCOMM Control l2capoutbuf[2] = length << 1 | 1; // Length uint8_t i = 0; @@ -767,8 +765,7 @@ void SPP::print(uint8_t* array, uint8_t length) { return; if (length > (sizeof (l2capoutbuf) - 4)) length = sizeof (l2capoutbuf) - 4; - l2capoutbuf[0] = rfcommChannelConnection | 0 | 0 | extendAddress; - ; // RFCOMM Address + l2capoutbuf[0] = rfcommChannelConnection | 0 | 0 | extendAddress; // RFCOMM Address l2capoutbuf[1] = RFCOMM_UIH; // RFCOMM Control l2capoutbuf[2] = length << 1 | 1; // Length uint8_t i = 0;