File tree Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ void beginBoard()
8181
8282 if (esp_reset_reason () == ESP_RST_POWERON)
8383 {
84- // powerOnCheck(); //Only do check if we POR start
84+ powerOnCheck (); // Only do check if we POR start
8585 }
8686
8787 pinMode (pin_peripheralPowerControl, OUTPUT);
Original file line number Diff line number Diff line change @@ -23,6 +23,17 @@ void checkButtons()
2323 }
2424 else if (productVariant == RTK_EXPRESS)
2525 {
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+
2637 // Check power button
2738 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
2839 if (digitalRead (pin_powerSenseAndControl) == LOW && powerPressedStartTime == 0 )
@@ -94,19 +105,6 @@ void checkButtons()
94105 // Return to unpressed state
95106 setupButtonState = BUTTON_RELEASED;
96107 }
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- }
110108 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
111109 }// end productVariant = Express
112110
Original file line number Diff line number Diff line change @@ -1380,7 +1380,7 @@ void displayTest()
13801380 delay (10 );
13811381 }
13821382
1383- delay (2000 ); // Big debounce
1383+ delay (500 );
13841384 }
13851385}
13861386
You can’t perform that action at this time.
0 commit comments