remove left over debug comments

This commit is contained in:
Proddy
2023-10-17 21:20:08 +02:00
parent c42ead995e
commit 558fa20283

View File

@@ -125,20 +125,21 @@ class Telegram {
uint8_t num_bytes = (!s) ? sizeof(Value) : s; uint8_t num_bytes = (!s) ? sizeof(Value) : s;
// check for out of bounds, if so don't modify the value // check for out of bounds, if so don't modify the value
auto msg_size = (index - this->offset + num_bytes - 1); auto msg_size = (index - this->offset + num_bytes - 1);
// TODO remove
Serial.print(" index: "); #ifdef EMSESP_DEBUG
Serial.print(index); // Serial.print(" index: ");
Serial.print(" offset: "); // Serial.print(index);
Serial.print(offset); // Serial.print(" offset: ");
Serial.print(" index: "); // Serial.print(offset);
Serial.print(" message_length: "); // Serial.print(" index: ");
Serial.print(this->message_length); // Serial.print(" message_length: ");
Serial.print(" msg_size: "); // Serial.print(this->message_length);
Serial.print(msg_size); // Serial.print(" msg_size: ");
Serial.println(); // Serial.print(msg_size);
// Serial.println();
#endif
if ((index < this->offset) || (msg_size >= this->message_length) || (msg_size > EMS_MAX_TELEGRAM_MESSAGE_LENGTH)) { if ((index < this->offset) || (msg_size >= this->message_length) || (msg_size > EMS_MAX_TELEGRAM_MESSAGE_LENGTH)) {
Serial.println("Rejedcting!"); // TODO: remove
return false; return false;
} }