Skip to content

Commit c1ab184

Browse files
committed
delay on repeats for ip blink
1 parent 0f17a6c commit c1ab184

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gurgleapps_webserver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ def get_content_type(self,file_path):
250250
}
251251
return content_type_map.get(extension, 'text/plain')
252252

253-
# long pause for dots 3quick blinks for zero
253+
# long pause for dots 3quick blinks for zero 2 quick for a dot
254254
async def blink_ip(self, led_pin, repeat=2, delay_between_digits=0.5):
255+
delay_between_repititions = 2
255256
print("blink_ip: "+str(self.ip_address))
256257
def blink_number(number, pin, duration=0.2):
257258
if number == 0:
@@ -278,3 +279,4 @@ def blink_number(number, pin, duration=0.2):
278279
else:
279280
blink_number(element, led_pin)
280281
await asyncio.sleep(delay_between_digits)
282+
await asyncio.sleep(delay_between_repititions)

0 commit comments

Comments
 (0)