debugging...

This commit is contained in:
Peter L 2021-11-10 14:49:43 +01:00
parent aee4312fc6
commit 67a53cbb08

View file

@ -206,12 +206,12 @@ def recording(timeout):
return 'OK' return 'OK'
def rewind(*opts): def rewind(*opts):
scroll_h.speed = -100 #scroll_h.speed = -100
scroll_v.speed = -100 #scroll_v.speed = -100
while (scroll_h.speed + scroll_v.speed) > 0: #while (scroll_h.speed + scroll_v.speed) > 0:
time.sleep_ms(10) # time.sleep_ms(10)
scroll_h.c = 0 #scroll_h.c = 0
scroll_v.c = 0 #scroll_v.c = 0
return 'OK' return 'OK'
############################################################################### ###############################################################################
@ -232,8 +232,10 @@ def parseCmd(cmd_str: str):
if len(parm_str) != 0: if len(parm_str) != 0:
parms = [int(x) for x in parm_str.split('+')] parms = [int(x) for x in parm_str.split('+')]
if _DEBUG: if _DEBUG:
print(f'parsed command: {cmd}:{parms}') print(cmd, parms, sep=': ')
resp = choice_map[cmd](*parms) resp = 'OK'
else:
resp = choice_map[cmd](*parms)
uart0.write(f'{resp}\n'.encode('utf-8')) uart0.write(f'{resp}\n'.encode('utf-8'))
def flash_led(times: int = 1, on_ms: int = 200, off_ms: int = 500): def flash_led(times: int = 1, on_ms: int = 200, off_ms: int = 500):