Skip to content

Commit

Permalink
Remove logger for raw change
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Dec 1, 2023
1 parent de6136d commit f5410b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions components/BalboaGL/ESPBalboaGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions components/BalboaGL/ESPBalboaGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,6 @@ class BalboaGL : public Component {
HardwareSerial *hw_serial_;

balboaGL* spa;
String lastRaw = "0";
};
#endif

0 comments on commit f5410b1

Please sign in to comment.