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:
parent
e97830542e
commit
8532517c4e
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user