From 558fa20283d024158e9636b128db93dfb7817cf8 Mon Sep 17 00:00:00 2001 From: Proddy Date: Tue, 17 Oct 2023 21:20:08 +0200 Subject: [PATCH] remove left over debug comments --- src/telegram.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/telegram.h b/src/telegram.h index 2cd0f49d7..96f1dd6ab 100644 --- a/src/telegram.h +++ b/src/telegram.h @@ -125,20 +125,21 @@ class Telegram { uint8_t num_bytes = (!s) ? sizeof(Value) : s; // check for out of bounds, if so don't modify the value auto msg_size = (index - this->offset + num_bytes - 1); - // TODO remove - Serial.print(" index: "); - Serial.print(index); - Serial.print(" offset: "); - Serial.print(offset); - Serial.print(" index: "); - Serial.print(" message_length: "); - Serial.print(this->message_length); - Serial.print(" msg_size: "); - Serial.print(msg_size); - Serial.println(); + +#ifdef EMSESP_DEBUG +// Serial.print(" index: "); +// Serial.print(index); +// Serial.print(" offset: "); +// Serial.print(offset); +// Serial.print(" index: "); +// Serial.print(" message_length: "); +// Serial.print(this->message_length); +// Serial.print(" msg_size: "); +// Serial.print(msg_size); +// Serial.println(); +#endif if ((index < this->offset) || (msg_size >= this->message_length) || (msg_size > EMS_MAX_TELEGRAM_MESSAGE_LENGTH)) { - Serial.println("Rejedcting!"); // TODO: remove return false; }