Updated the code.

This commit is contained in:
Batuhan Berk Başoğlu 2021-02-01 19:52:44 -05:00
parent be4752b619
commit ab1a6c665e

View file

@ -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")