Updated the code.
This commit is contained in:
parent
be4752b619
commit
ab1a6c665e
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ def inference():
|
|||
if cond:
|
||||
DBHelper.set_motor("on")
|
||||
DBHelper.set_alarm("off")
|
||||
time.sleep(1)
|
||||
elif not cond:
|
||||
DBHelper.set_motor("off")
|
||||
DBHelper.set_alarm("on")
|
||||
|
|
Loading…
Reference in a new issue