Addresses issue raised in #159

This commit is contained in:
tyeth 2024-11-29 23:39:56 +00:00
parent 3b008d356d
commit 302fcca696

View file

@ -40,7 +40,10 @@ led.direction = digitalio.Direction.OUTPUT
while True:
try:
data = aio.receive(digital.key)
except RequestError as re:
pass # feed with no data will return 404
if int(data.value) == 1:
print('received <- ON\n')
elif int(data.value) == 0: