Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
see issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperDX authored Mar 8, 2023
1 parent e468b0a commit 36173a5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions TEF_ESP.ino
Original file line number Diff line number Diff line change
Expand Up @@ -512,15 +512,13 @@ WiFiSwitchString = WiFiSwitchStrings[WiFiSwitch];
}
}

if (digitalRead(PWRBUTTON) == LOW) {
//if (digitalRead(PWRBUTTON) == HIGH) {
if (digitalRead(PWRBUTTON) == HIGH) {
analogWrite(SMETERPIN, 511);
tft.fillScreen(BackgroundColor);
tft.setTextColor(SecondaryColor);
tft.drawCentreString("Calibrate analog meter", 150, 70, 4);
tft.drawCentreString("Release button when ready", 150, 100, 4);
while (digitalRead(PWRBUTTON) == LOW) {
//while (digitalRead(PWRBUTTON) == HIGH) {
while (digitalRead(PWRBUTTON) == HIGH) {
delay(50);
}
analogWrite(SMETERPIN, 0);
Expand Down

0 comments on commit 36173a5

Please sign in to comment.