Removed checking for valid tx pin for Victron (#455)
Please check wiki documentation, and change/extend it accordingly.
This commit is contained in:
parent
933345d659
commit
4ee49a6ecb
@ -307,8 +307,7 @@ bool PinMappingClass::isValidEthConfig()
|
||||
|
||||
bool PinMappingClass::isValidVictronConfig()
|
||||
{
|
||||
return _pinMapping.victron_rx >= 0
|
||||
&& _pinMapping.victron_tx >= 0;
|
||||
return _pinMapping.victron_rx >= 0;
|
||||
}
|
||||
|
||||
bool PinMappingClass::isValidHuaweiConfig()
|
||||
|
||||
@ -13,7 +13,7 @@ bool VictronSmartShunt::init(bool verboseLogging)
|
||||
MessageOutput.printf("[VictronSmartShunt] Interface rx = %d, tx = %d\r\n",
|
||||
pin.battery_rx, pin.battery_tx);
|
||||
|
||||
if (pin.battery_rx < 0 || pin.battery_tx < 0) {
|
||||
if (pin.battery_rx < 0) {
|
||||
MessageOutput.println(F("[VictronSmartShunt] Invalid pin config"));
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user