Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32_2432S028_2USB missing invert screen config option, extra screen heap #529

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/NerdMinerV2.ino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void setup()

/******** CREATE STRATUM TASK *****/
sprintf(name, "(%s)", "Stratum");
#ifdef ESP32_2432S028R
#if defined(ESP32_2432S028R) || defined(ESP32_2432S028_2USB)
// Free a little bit of the heap to the screen
BaseType_t res2 = xTaskCreatePinnedToCore(runStratumWorker, "Stratum", 13500, (void*)name, 3, NULL,1);
#else
Expand Down
10 changes: 5 additions & 5 deletions src/wManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void init_WifiManager()
wm.addParameter(&time_text_box_num);
wm.addParameter(&features_html);
wm.addParameter(&save_stats_to_nvs);
#ifdef ESP32_2432S028R
#if defined(ESP32_2432S028R) || defined(ESP32_2432S028_2USB)
char checkboxParams2[24] = "type=\"checkbox\"";
if (Settings.invertColors)
{
Expand Down Expand Up @@ -208,7 +208,7 @@ void init_WifiManager()
Settings.Timezone = atoi(time_text_box_num.getValue());
//Serial.println(save_stats_to_nvs.getValue());
Settings.saveStats = (strncmp(save_stats_to_nvs.getValue(), "T", 1) == 0);
#ifdef ESP32_2432S028R
#if defined(ESP32_2432S028R) || defined(ESP32_2432S028_2USB)
Settings.invertColors = (strncmp(invertColors.getValue(), "T", 1) == 0);
#endif
nvMem.saveConfig(&Settings);
Expand Down Expand Up @@ -238,7 +238,7 @@ void init_WifiManager()
Settings.Timezone = atoi(time_text_box_num.getValue());
// Serial.println(save_stats_to_nvs.getValue());
Settings.saveStats = (strncmp(save_stats_to_nvs.getValue(), "T", 1) == 0);
#ifdef ESP32_2432S028R
#if defined(ESP32_2432S028R) || defined(ESP32_2432S028_2USB)
Settings.invertColors = (strncmp(invertColors.getValue(), "T", 1) == 0);
#endif
nvMem.saveConfig(&Settings);
Expand Down Expand Up @@ -284,7 +284,7 @@ void init_WifiManager()
Serial.print("TimeZone fromUTC: ");
Serial.println(Settings.Timezone);

#ifdef ESP32_2432S028R
#if defined(ESP32_2432S028R) || defined(ESP32_2432S028_2USB)
Settings.invertColors = (strncmp(invertColors.getValue(), "T", 1) == 0);
Serial.print("Invert Colors: ");
Serial.println(Settings.invertColors);
Expand All @@ -296,7 +296,7 @@ void init_WifiManager()
if (shouldSaveConfig)
{
nvMem.saveConfig(&Settings);
#ifdef ESP32_2432S028R
#if defined(ESP32_2432S028R) || defined(ESP32_2432S028_2USB)
if (Settings.invertColors) ESP.restart();
#endif
}
Expand Down