diff --git a/release/TFMiniPlus.cpp b/release/TFMiniPlus.cpp index fdb426d..77b85d4 100644 --- a/release/TFMiniPlus.cpp +++ b/release/TFMiniPlus.cpp @@ -190,8 +190,6 @@ bool TFMiniPlus::validateChecksum(uint8_t dataBuffer[], uint8_t length) { } void TFMiniPlus::write(uint8_t buffer[], uint8_t length) { - Serial.print("Writing: "); - TFMiniPlus::printBuffer(buffer, length); for (uint8_t i = 0; i < length; i++) { _stream->write(buffer[i]); } @@ -215,9 +213,6 @@ bool TFMiniPlus::readCommandResponse(uint8_t buffer[]) { frame[i] = response[i - 2]; } - Serial.print("Revieved Frame: "); - TFMiniPlus::printBuffer(frame, MAX_CMD_RESPONSE_LENGTH); - // validate command frame if (TFMiniPlus::validateChecksum(frame, length)) { TFMiniPlus::copyBuffer(buffer, frame, length); @@ -252,14 +247,6 @@ uint32_t TFMiniPlus::readInt32FromBuffer(uint8_t buffer[], uint8_t startIndex) { buffer[startIndex + 3]; } -void TFMiniPlus::printBuffer(uint8_t buffer[], uint8_t length) { - for (uint8_t i = 0; i < length; i++) { - Serial.print(buffer[i], HEX); - Serial.print(" "); - } - Serial.println(""); -} - void TFMiniPlus::copyBuffer(uint8_t buffer1[], uint8_t buffer2[], uint8_t length) { for (uint8_t i = 0; i < length; i++) { diff --git a/release/TFMiniPlus.h b/release/TFMiniPlus.h index d1a081a..8ace2de 100644 --- a/release/TFMiniPlus.h +++ b/release/TFMiniPlus.h @@ -51,7 +51,6 @@ class TFMiniPlus { void skipToFrameHeader(uint8_t farameHeader); uint16_t readInt16FromBuffer(uint8_t buffer[], uint8_t startIndex); uint32_t readInt32FromBuffer(uint8_t buffer[], uint8_t startIndex); - void printBuffer(uint8_t buffer[], uint8_t length); void copyBuffer(uint8_t buffer1[], uint8_t buffer2[], uint8_t length); void resetBuffer(uint8_t buffer[], uint8_t length); }; diff --git a/release/release.zip b/release/release.zip index 398ce99..4167503 100644 Binary files a/release/release.zip and b/release/release.zip differ diff --git a/src/TFMiniPlus.cpp b/src/TFMiniPlus.cpp index fdb426d..77b85d4 100644 --- a/src/TFMiniPlus.cpp +++ b/src/TFMiniPlus.cpp @@ -190,8 +190,6 @@ bool TFMiniPlus::validateChecksum(uint8_t dataBuffer[], uint8_t length) { } void TFMiniPlus::write(uint8_t buffer[], uint8_t length) { - Serial.print("Writing: "); - TFMiniPlus::printBuffer(buffer, length); for (uint8_t i = 0; i < length; i++) { _stream->write(buffer[i]); } @@ -215,9 +213,6 @@ bool TFMiniPlus::readCommandResponse(uint8_t buffer[]) { frame[i] = response[i - 2]; } - Serial.print("Revieved Frame: "); - TFMiniPlus::printBuffer(frame, MAX_CMD_RESPONSE_LENGTH); - // validate command frame if (TFMiniPlus::validateChecksum(frame, length)) { TFMiniPlus::copyBuffer(buffer, frame, length); @@ -252,14 +247,6 @@ uint32_t TFMiniPlus::readInt32FromBuffer(uint8_t buffer[], uint8_t startIndex) { buffer[startIndex + 3]; } -void TFMiniPlus::printBuffer(uint8_t buffer[], uint8_t length) { - for (uint8_t i = 0; i < length; i++) { - Serial.print(buffer[i], HEX); - Serial.print(" "); - } - Serial.println(""); -} - void TFMiniPlus::copyBuffer(uint8_t buffer1[], uint8_t buffer2[], uint8_t length) { for (uint8_t i = 0; i < length; i++) { diff --git a/src/TFMiniPlus.h b/src/TFMiniPlus.h index d1a081a..8ace2de 100644 --- a/src/TFMiniPlus.h +++ b/src/TFMiniPlus.h @@ -51,7 +51,6 @@ class TFMiniPlus { void skipToFrameHeader(uint8_t farameHeader); uint16_t readInt16FromBuffer(uint8_t buffer[], uint8_t startIndex); uint32_t readInt32FromBuffer(uint8_t buffer[], uint8_t startIndex); - void printBuffer(uint8_t buffer[], uint8_t length); void copyBuffer(uint8_t buffer1[], uint8_t buffer2[], uint8_t length); void resetBuffer(uint8_t buffer[], uint8_t length); }; diff --git a/src/library.properties b/src/library.properties index 1b2b30f..79f16e8 100644 --- a/src/library.properties +++ b/src/library.properties @@ -1,5 +1,5 @@ name=TFMiniPlus -version=0.0.1 +version=0.0.2 author=Karim Mansour maintainer=Karim Mansour sentence=A library to read data and control the TFMini Plus Lidar system.