1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-06-17 13:05:23 +02:00

fixed return states

This commit is contained in:
travis-farmer 2024-12-16 10:21:47 -05:00
parent e97830542e
commit 8532517c4e
No known key found for this signature in database
GPG Key ID: 0BC296791D14CB35

View File

@ -306,9 +306,10 @@ bool RSprotonode::_configure(VPIN vpin, ConfigTypeEnum configType, int paramCoun
while (resFlag == 0 && millis() - startMillis < 500); // blocking for now
if (resFlag != 1) {
DIAG(F("EX-IOExpander485 Vpin %u cannot be used as a digital input pin"), pin);
return false;
}
resFlag = 0;
return false;
return true;
}
int RSprotonode::_configureAnalogIn(VPIN vpin) {
@ -320,9 +321,10 @@ bool RSprotonode::_configure(VPIN vpin, ConfigTypeEnum configType, int paramCoun
while (resFlag == 0 && millis() - startMillis < 500); // blocking for now
if (resFlag != 1) {
DIAG(F("EX-IOExpander485 Vpin %u cannot be used as a digital input pin"), pin);
return false;
}
resFlag = 0;
return false;
return true;
}
void RSprotonode::_begin() {