Skip to content

Commit

Permalink
Disable battery monitor task
Browse files Browse the repository at this point in the history
Disable temporanely battery monitor task, track issue here #34
  • Loading branch information
andreock committed Sep 5, 2024
1 parent 1878f83 commit d91f2ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/UI/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "./ui_tasks/battery_monitor/battery_monitor_task.hpp"

void Gui::init_gui() {
Serial.println("Init"); // For some really strange reason this is needed to avoid UI glitches
if(main_page == nullptr) {
#ifdef CONFIG_IDF_TARGET_ESP32S2
main_page = new MainPage(5, 0, 4, screen, this);
Expand All @@ -36,7 +35,7 @@ void Gui::init_gui() {
#endif
main_page->display();
battery_monitor_task_params.page = main_page;
xTaskCreate(battery_monitor_task, "battery_monitor_ui", 2000, &battery_monitor_task_params, tskIDLE_PRIORITY, NULL);
// xTaskCreate(battery_monitor_task, "battery_monitor_ui", 3000, &battery_monitor_task_params, 23, NULL);
}else {
main_page->display();
delete current_page;
Expand Down

0 comments on commit d91f2ae

Please sign in to comment.