Skip to content

Commit

Permalink
Fast loop when sending
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Dec 1, 2023
1 parent f5410b1 commit bf5f862
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/BalboaGL/ESPBalboaGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ void BalboaGL::loop() {
sanity++;
}
while((status.commandQueue > 0) && (sanity < 10));
if(status.commandQueue > 0) {
this->high_freq_.start(); // no wait on main loop
}
else {
this->high_freq_.stop();
}

// if(status.commandQueue > 0) ESP_LOGV(TAG, "q:%u s:%u", status.commandQueue, sanity);
}

Expand Down Expand Up @@ -99,8 +106,6 @@ void BalboaGL::setup() {
this->spa->attachPanelInterrupt();
if(delay_time > -1) this->spa->set_delay_time(delay_time);

this->high_freq_.start(); // no wait on main loop

// ESP_LOGCONFIG(
// TAG,
// "hw_serial(%p) is &Serial(%p)? %s",
Expand Down

0 comments on commit bf5f862

Please sign in to comment.