diff --git a/components/BalboaGL/ESPBalboaGL.cpp b/components/BalboaGL/ESPBalboaGL.cpp index 188ff36..eb974a0 100755 --- a/components/BalboaGL/ESPBalboaGL.cpp +++ b/components/BalboaGL/ESPBalboaGL.cpp @@ -63,14 +63,12 @@ void BalboaGL::loop() { // ESP_LOGV(TAG, "Loop called."); int sanity = 0; do { - size_t len = this->spa->readSerial(); - // ESP_LOGV(TAG, "Read %u bytes", len); - static String lastRaw = "0"; - if(status.rawData != lastRaw) { - ESP_LOGD(TAG, "Raw: %s", status.rawData.c_str()); - lastRaw = status.rawData; - // this->publish_state(); - } + this->spa->readSerial(); + // if(status.rawData != lastRaw) { + // ESP_LOGD(TAG, "Raw: %s", status.rawData.c_str()); + // lastRaw = status.rawData; + // // this->publish_state(); + // } sanity++; } while((status.commandQueue > 0) && (sanity < 10)); diff --git a/components/BalboaGL/ESPBalboaGL.h b/components/BalboaGL/ESPBalboaGL.h index b711188..b58c40e 100755 --- a/components/BalboaGL/ESPBalboaGL.h +++ b/components/BalboaGL/ESPBalboaGL.h @@ -97,5 +97,6 @@ class BalboaGL : public Component { HardwareSerial *hw_serial_; balboaGL* spa; + String lastRaw = "0"; }; #endif \ No newline at end of file