From 212df49b9e9b1701eb89e40c73cf4bac5efef332 Mon Sep 17 00:00:00 2001 From: Karim Mansour Date: Sun, 24 Feb 2019 22:57:49 +0100 Subject: [PATCH] removed debug message --- release/TFMiniPlus.cpp | 13 ------------- release/TFMiniPlus.h | 1 - release/release.zip | Bin 5356 -> 5269 bytes src/TFMiniPlus.cpp | 13 ------------- src/TFMiniPlus.h | 1 - src/library.properties | 2 +- 6 files changed, 1 insertion(+), 29 deletions(-) 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 398ce99caba0129f9302c2c7bb1326119340f5be..416750324b2a763eab65d16a9cf2319cfa1b9a5f 100644 GIT binary patch delta 2711 zcmZvecQ7348pfB^qFY24ZIf6b>PCwbqKg`0^=Pa2ZprFwM1<8_!s=0uF4`ekLa-vr zhRX^PofV4+371puo!q(K%=gZ`zj@x7_mA(J=h+g?6s0%P15(feE>2x*8vPY&7%0Hn z0u+!o&PMYWHqJ~lxK4$_`&;MY)1-LF&-+}d|McuMZ0DmifOEQi`%j9(H%XEWk)7+% zC*;ciM~Jor-v3A01jLYEC}C7$eM*Um4DhqLVN#DlNJnI2~UD)Myg0CxjL# z9gT+M91Nh4u;u5rgO^oq$EQMr%q5$Eq*x)LZtpbm^+Wq9n`htO#?Ron>oW7Q4|DZkD@346!=X{!^x-S2l<_zECx@@PpdC8r;cow**P|` zSF3bs%@10NWj+e&UY8D}$(S0=^y?Fp!3+D2cdpMP88o}?&%8hKL~f{@cQJU`CTp@be`g9a=-K@g{ zHaGZ?k@c^2G|J3=vF^Y(5sOqKhvn)k6&cB|QfjuX0_cAe(DHh^ILfnT ziiBj=4%A%=7Eo-w;xo8mn=|{by0R8TLF?wxqLa@4gXDWVUmO?|wSq>-o4mXhUMPLr z0u$K@1>%SER(hRn!QnoYlLspnu}Bbidrt*XLfn{V#sJp;0Oo^oiT&+gK;s(?H(Iwc zw-tmzbBtf7P(I$&z?lyz+PCFcR8BYL*bjC=DS{Mz0L342N@hpF)c=H9{f2 zfG-$n6*`zDPZkLKoSd*CAESWp1^S()gqok~WaytZZ&(?7Cm%L44UYA5+IFYskNI%n zaP6@N_jp^O>B@KFPUvB(6Bu z{m?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H|RPjUv(?>SCrIFU{!fj2w z)_t55h;z%Q=?`RC2!<4@ic|7tGAaphC=$6)a56jb5_xRB|MHJH+4+E44nt)|@Kybx z-in8^^J0#`#DUeKO9eBAFmeM|Nxfi_Hk{^j+46Q!xnGC+{OKFFBUWP!Zk!e8(aV@_ zXJyR{hT19ivupy-C8&KHu7zBmz)Y%&>LTntkjtr1moohSPR%A@;$udHh7dv&c61NX_>gf(J)gXU%lmMVVcX+4CeLG#IWGRag6><8n8X}H(lIevWyTPV|T5WP-D+E#Z`BkEJq{4 zs`?rVV9Dn+w-TIp*pGdo(^>8H1k zJz@4?3U&~PJX~R;@@~TLUt3w*U~^+Oc1hsB36Lx$aD=^LKmNh@bD5Wb`Y&CZfX+Xi zDETE6ygx?@8vioCCusEBd{Yqr8wr7){Du6U^roQ7zf7h6_qziCLIAO!NtJD{Qo`fN b=0Xzx$e}`@y{HHPaPMvJy=>?zu;2X$gLf`5 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.