re-enable powersaving and disable fastboot
This commit is contained in:
parent
da14bad378
commit
5b2b515964
@ -111,7 +111,7 @@ TouchScreen ts = TouchScreen(XP, YP, XM, YM, 333);
|
|||||||
|
|
||||||
String outtext = "";
|
String outtext = "";
|
||||||
String oldtext = "";
|
String oldtext = "";
|
||||||
boolean fastboot = true;
|
boolean fastboot = false;
|
||||||
boolean debug = true;
|
boolean debug = true;
|
||||||
|
|
||||||
//Adafruit_Image img;
|
//Adafruit_Image img;
|
||||||
@ -845,7 +845,7 @@ void setup(void) {
|
|||||||
delay(250);
|
delay(250);
|
||||||
}
|
}
|
||||||
printConsoleText("[ OK ] Enabling powersaving features... "); // 53 characters wide
|
printConsoleText("[ OK ] Enabling powersaving features... "); // 53 characters wide
|
||||||
enablePS(1);
|
enablePS(3);
|
||||||
upd = true;
|
upd = true;
|
||||||
|
|
||||||
if (!soil1.begin(0x36)) {
|
if (!soil1.begin(0x36)) {
|
||||||
@ -895,7 +895,7 @@ void loop(void) {
|
|||||||
printConsoleText(txtin.substring(0, txtin.length() - 1));
|
printConsoleText(txtin.substring(0, txtin.length() - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getMoisture();
|
||||||
// change upd to true if screen update needed
|
// change upd to true if screen update needed
|
||||||
if(!debug && upd) {
|
if(!debug && upd) {
|
||||||
tft.fillScreen(BLACK);
|
tft.fillScreen(BLACK);
|
||||||
@ -908,8 +908,7 @@ void loop(void) {
|
|||||||
|
|
||||||
upd = false;
|
upd = false;
|
||||||
}
|
}
|
||||||
getMoisture();
|
|
||||||
delay(2000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ISR (WDT_vect)
|
ISR (WDT_vect)
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user