File tree 3 files changed +13
-15
lines changed
3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ void beginBoard()
81
81
82
82
if (esp_reset_reason () == ESP_RST_POWERON)
83
83
{
84
- // powerOnCheck(); //Only do check if we POR start
84
+ powerOnCheck (); // Only do check if we POR start
85
85
}
86
86
87
87
pinMode (pin_peripheralPowerControl, OUTPUT);
Original file line number Diff line number Diff line change @@ -23,6 +23,17 @@ void checkButtons()
23
23
}
24
24
else if (productVariant == RTK_EXPRESS)
25
25
{
26
+ // Check to see if user is pressing both buttons simultaneously - show test screen
27
+ if (digitalRead (pin_powerSenseAndControl) == LOW && digitalRead (pin_setupButton) == LOW)
28
+ {
29
+ delay (debounceDelay); // Debounce
30
+ if (digitalRead (pin_powerSenseAndControl) == LOW && digitalRead (pin_setupButton) == LOW)
31
+ {
32
+ displayTest ();
33
+ setupButtonState = BUTTON_RELEASED;
34
+ }
35
+ }
36
+
26
37
// Check power button
27
38
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
28
39
if (digitalRead (pin_powerSenseAndControl) == LOW && powerPressedStartTime == 0 )
@@ -94,19 +105,6 @@ void checkButtons()
94
105
// Return to unpressed state
95
106
setupButtonState = BUTTON_RELEASED;
96
107
}
97
-
98
- // Check to see if user is pressing both buttons simultaneously - show test screen
99
- if (digitalRead (pin_powerSenseAndControl) == LOW && digitalRead (pin_setupButton) == LOW)
100
- {
101
- delay (debounceDelay); // Debounce
102
- if (digitalRead (pin_powerSenseAndControl) == LOW && digitalRead (pin_setupButton) == LOW)
103
- {
104
- displayTest ();
105
- setupButtonState = BUTTON_RELEASED;
106
- buttonPreviousState = BUTTON_ROVER;
107
- changeState (STATE_ROVER_NOT_STARTED);
108
- }
109
- }
110
108
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
111
109
}// end productVariant = Express
112
110
Original file line number Diff line number Diff line change @@ -1380,7 +1380,7 @@ void displayTest()
1380
1380
delay (10 );
1381
1381
}
1382
1382
1383
- delay (2000 ); // Big debounce
1383
+ delay (500 );
1384
1384
}
1385
1385
}
1386
1386
You can’t perform that action at this time.
0 commit comments