Skip to content

Commit 5a632ce

Browse files
author
chunter1
authored
Timer option added
1 parent 627aa2c commit 5a632ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_P104_SRF02.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ boolean Plugin_104(byte function, struct EventStruct *event, String& string)
4949
Device[deviceCount].PullUpOption = false;
5050
Device[deviceCount].InverseLogicOption = false;
5151
Device[deviceCount].FormulaOption = true;
52+
Device[deviceCount].TimerOption = true;
53+
Device[deviceCount].TimerOptional = true;
5254
Device[deviceCount].ValueCount = 1;
5355
Device[deviceCount].SendDataOption = true;
5456
break;
@@ -168,4 +170,4 @@ float Plugin_104_getDistance()
168170
Plugin_104_wireReadTwoBytes(SRF02_REG_RANGE_HIGH_BYTE, &value);
169171

170172
return (float)value/(float)5.82750583; // distance in [mm] (2*1000/343.2)
171-
}
173+
}

0 commit comments

Comments
 (0)