fixed longstanding battery % bug, bump version to 0.3.7
This commit is contained in:
parent
059869cf73
commit
850e5a4981
@ -230,7 +230,7 @@ void setup(void) {
|
||||
}
|
||||
clearLog();
|
||||
printFastCText("Booting GreenhouseOS...");
|
||||
printFastCText("Version: 0.3.6");
|
||||
printFastCText("Version: 0.3.7");
|
||||
printFastCText("");
|
||||
delay(250);
|
||||
if(!didDraw) {
|
||||
@ -519,7 +519,7 @@ void checkBat() {
|
||||
if(analogRead(1) > 910) {
|
||||
out += "Using solar.";
|
||||
} else {
|
||||
out += map(y / 20, 572, 859, 0, 100);
|
||||
out += map(y, 572, 859, 0, 100);
|
||||
out += "%";
|
||||
}
|
||||
drawButton(160, 0, 160, 20, "", ILI9341_WHITE);
|
||||
@ -945,12 +945,14 @@ void button(int x, int y) {
|
||||
if (x == 1 && y == 1) {
|
||||
menu = 0;
|
||||
upd = true;
|
||||
delay(125);
|
||||
}
|
||||
}
|
||||
else if (menu == 2) {
|
||||
if (x == 1 && y == 1) {
|
||||
menu = 0;
|
||||
upd = true;
|
||||
delay(125);
|
||||
}
|
||||
}
|
||||
else if (menu == 3) {
|
||||
@ -962,6 +964,7 @@ void button(int x, int y) {
|
||||
updBoxMenu(2);
|
||||
updBoxMenu(3);
|
||||
updBoxMenu(4);
|
||||
delay(125);
|
||||
}
|
||||
TSPoint p = ts.getPoint();
|
||||
p.x = map(p.x, TS_MINX, TS_MAXX, tft.height(), 0);
|
||||
|
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