Update NewMotorFunc.py

This commit is contained in:
MA-QIAN 2020-11-19 11:52:08 -05:00 committed by GitHub
parent 82d9947ef5
commit 17e04d8029

View file

@ -63,7 +63,7 @@ class Motor:
database = self.firebase.database() # get alarm on/off signal from firebase
signals = database.child("signal")
motorSignal = signals.child("power").get().val()
motorSignal = signals.child("motor").get().val()
if (motorSignal=="off") or (not GPIO.input(13)):