1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

bump PiSRF node to fix timeout

Thanks @bartbutenaers to Close #309
This commit is contained in:
Dave Conway-Jones 2017-05-08 09:01:45 +01:00
parent 2700a2c300
commit 13fbfc4f22
No known key found for this signature in database
GPG Key ID: 81B04231572A9A2D
2 changed files with 4 additions and 4 deletions

View File

@ -34,9 +34,9 @@ def Measure():
while GPIO.input(ECHO)==1:
stop = time.time()
Dif = time.time() - realstart
if Dif > 5:
if Dif > 0.4:
print("Ultrasonic Sensor Timed out, Restarting.")
time.sleep(0.4)
time.sleep(0.2)
Main()
elapsed = stop-start

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-pisrf",
"version" : "0.0.3",
"version" : "0.0.4",
"description" : "A Node-RED node for a Raspberry Pi to use a SRF04 or SRF05 range finder",
"dependencies" : {
},