Skip to content

Commit 4508de3

Browse files
authored
Fixed SensorLatchingRelay2Pins select wrong pin in _switchOutput()
1 parent b688f98 commit 4508de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NodeManagerLibrary.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ void SensorDigitalOutput::_switchOutput(int requested_status) {
13921392
// invert the value to write if needed. E.g. if ON is received, write LOW, if OFF write HIGH
13931393
if (_invert_value_to_write) value = !value;
13941394
// write the value to the pin
1395-
digitalWrite(_pin, value);
1395+
digitalWrite(pin, value);
13961396
// if pulse is set wait for the given timeframe before restoring the value to the original value
13971397
if (_pulse_width > 0) {
13981398
_node->sleepOrWait(_pulse_width);
@@ -1403,7 +1403,7 @@ void SensorDigitalOutput::_switchOutput(int requested_status) {
14031403
Serial.print(F(" I="));
14041404
Serial.print(children.get(1)->getChildId());
14051405
Serial.print(F(" P="));
1406-
Serial.print(_pin);
1406+
Serial.print(pin);
14071407
Serial.print(F(" S="));
14081408
Serial.print(requested_status);
14091409
Serial.print(F(" V="));

0 commit comments

Comments
 (0)