def StartFan(): success = False readFlags() # diavazei ta flags if not myFlags.Door: success = standardMotorFunction('31', 'StartFan') else: app.logger.error("[StartFan] Door OPEN :") addError("[StartFan] Door OPEN") return success
def Motor_2_Stop(): success = False readFlags() # diavazei ta flags if not myFlags.Door: success = standardMotorFunction('20', 'Motor_2_Stop') else: app.logger.error("[Motor_2_Stop] Door OPEN :") addError("[Motor_2_Stop] Door OPEN") return success