File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1392,7 +1392,7 @@ void SensorDigitalOutput::_switchOutput(int requested_status) {
1392
1392
// invert the value to write if needed. E.g. if ON is received, write LOW, if OFF write HIGH
1393
1393
if (_invert_value_to_write) value = !value;
1394
1394
// write the value to the pin
1395
- digitalWrite (_pin , value);
1395
+ digitalWrite (pin , value);
1396
1396
// if pulse is set wait for the given timeframe before restoring the value to the original value
1397
1397
if (_pulse_width > 0 ) {
1398
1398
_node->sleepOrWait (_pulse_width);
@@ -1403,7 +1403,7 @@ void SensorDigitalOutput::_switchOutput(int requested_status) {
1403
1403
Serial.print (F (" I=" ));
1404
1404
Serial.print (children.get (1 )->getChildId ());
1405
1405
Serial.print (F (" P=" ));
1406
- Serial.print (_pin );
1406
+ Serial.print (pin );
1407
1407
Serial.print (F (" S=" ));
1408
1408
Serial.print (requested_status);
1409
1409
Serial.print (F (" V=" ));
You can’t perform that action at this time.
0 commit comments