debugging...
This commit is contained in:
parent
aee4312fc6
commit
67a53cbb08
1 changed files with 10 additions and 8 deletions
|
@ -206,12 +206,12 @@ def recording(timeout):
|
|||
return 'OK'
|
||||
|
||||
def rewind(*opts):
|
||||
scroll_h.speed = -100
|
||||
scroll_v.speed = -100
|
||||
while (scroll_h.speed + scroll_v.speed) > 0:
|
||||
time.sleep_ms(10)
|
||||
scroll_h.c = 0
|
||||
scroll_v.c = 0
|
||||
#scroll_h.speed = -100
|
||||
#scroll_v.speed = -100
|
||||
#while (scroll_h.speed + scroll_v.speed) > 0:
|
||||
# time.sleep_ms(10)
|
||||
#scroll_h.c = 0
|
||||
#scroll_v.c = 0
|
||||
return 'OK'
|
||||
|
||||
###############################################################################
|
||||
|
@ -232,7 +232,9 @@ def parseCmd(cmd_str: str):
|
|||
if len(parm_str) != 0:
|
||||
parms = [int(x) for x in parm_str.split('+')]
|
||||
if _DEBUG:
|
||||
print(f'parsed command: {cmd}:{parms}')
|
||||
print(cmd, parms, sep=': ')
|
||||
resp = 'OK'
|
||||
else:
|
||||
resp = choice_map[cmd](*parms)
|
||||
uart0.write(f'{resp}\n'.encode('utf-8'))
|
||||
|
||||
|
|
Loading…
Reference in a new issue