update nerdnos temps

This commit is contained in:
WantClue 2024-11-16 13:53:56 +01:00
parent 93d88d19e9
commit 1166bf696f
2 changed files with 6 additions and 0 deletions

View File

@ -104,9 +104,11 @@ void tDisplay_MinerScreen(unsigned long mElapsed)
render.setFontSize(24);
render.drawString(data.valids.c_str(), 285, 56, 0xDEDB);
#ifndef NERD_NOS
// Print Temp
render.setFontSize(10);
render.rdrawString(data.temp.c_str(), 239, 1, TFT_BLACK);
#endif
render.setFontSize(4);
render.rdrawString(String(0).c_str(), 244, 3, TFT_BLACK);

View File

@ -292,7 +292,11 @@ mining_data getMiningData(unsigned long mElapsed)
data.bestDiff = best_diff_string;
data.timeMining = timeMining;
data.valids = valids;
#ifdef NERD_NOS
data.temp = data.currentTemperature;
#else
data.temp = String(temperatureRead(), 0);
#endif
data.currentTime = getTime();
return data;