File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2499,10 +2499,10 @@ void paintSystemTest()
2499
2499
pinMode (pin_muxADC, INPUT_PULLUP);
2500
2500
2501
2501
digitalWrite (pin_muxDAC, HIGH);
2502
- if (digitalRead (pin_muxADC) == HIGH)
2502
+ if (readAnalogPinAsDigital (pin_muxADC) == HIGH)
2503
2503
{
2504
2504
digitalWrite (pin_muxDAC, LOW);
2505
- if (digitalRead (pin_muxADC) == LOW)
2505
+ if (readAnalogPinAsDigital (pin_muxADC) == LOW)
2506
2506
oled->print (" OK" );
2507
2507
else
2508
2508
oled->print (" FAIL" );
Original file line number Diff line number Diff line change @@ -1947,9 +1947,9 @@ void um980FirmwareBeginUpdate()
1947
1947
}
1948
1948
}
1949
1949
1950
- if (digitalRead (pin_powerButton) == HIGH)
1950
+ if (readAnalogPinAsDigital (pin_powerButton) == HIGH)
1951
1951
{
1952
- while (digitalRead (pin_powerButton) == HIGH)
1952
+ while (readAnalogPinAsDigital (pin_powerButton) == HIGH)
1953
1953
delay (100 );
1954
1954
1955
1955
// Remove file and reset to exit pass-through mode
Original file line number Diff line number Diff line change @@ -482,9 +482,9 @@ void beginLoraFirmwareUpdate()
482
482
while (serialGNSS->available ())
483
483
Serial.write (serialGNSS->read ());
484
484
485
- if (digitalRead (pin_powerButton) == HIGH)
485
+ if (readAnalogPinAsDigital (pin_powerButton) == HIGH)
486
486
{
487
- while (digitalRead (pin_powerButton) == HIGH)
487
+ while (readAnalogPinAsDigital (pin_powerButton) == HIGH)
488
488
delay (100 );
489
489
490
490
// Remove file and reset to exit LoRa update pass-through mode
Original file line number Diff line number Diff line change @@ -84,13 +84,13 @@ bool sdCardPresent(void)
84
84
{
85
85
if (present.microSdCardDetectLow == true )
86
86
{
87
- if (digitalRead (pin_microSD_CardDetect) == LOW)
87
+ if (readAnalogPinAsDigital (pin_microSD_CardDetect) == LOW)
88
88
return (true ); // Card detect low = SD in place
89
89
return (false ); // Card detect high = No SD
90
90
}
91
91
else if (present.microSdCardDetectHigh == true )
92
92
{
93
- if (digitalRead (pin_microSD_CardDetect) == HIGH)
93
+ if (readAnalogPinAsDigital (pin_microSD_CardDetect) == HIGH)
94
94
return (true ); // Card detect high = SD in place
95
95
return (false ); // Card detect low = No SD
96
96
}
Original file line number Diff line number Diff line change @@ -770,7 +770,7 @@ bool isUsbAttached()
770
770
{
771
771
if (pin_powerAdapterDetect != PIN_UNDEFINED)
772
772
// Pin goes low when wall adapter is detected
773
- if (digitalRead (pin_powerAdapterDetect) == HIGH)
773
+ if (readAnalogPinAsDigital (pin_powerAdapterDetect) == HIGH)
774
774
return false ;
775
775
return true ;
776
776
}
You can’t perform that action at this time.
0 commit comments