Update NewMotorFunc.py
This commit is contained in:
parent
82d9947ef5
commit
17e04d8029
1 changed files with 1 additions and 1 deletions
|
@ -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)):
|
||||
|
|
Loading…
Reference in a new issue