File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
listener_clients/gpo-listener Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -283,14 +283,13 @@ def processTallyData():
283
283
gpo ["lastState" ] = True
284
284
powered_pins .append (gpo ["pinNumber" ])
285
285
for device_state in device_states :
286
- if len (device_state ["sources" ]) > 0 :
287
- for gpo_group in config_object ["gpo_groups" ]:
288
- if device_state ["deviceId" ] == gpo_group ["deviceId" ]:
289
- for gpo in gpo_group ["gpos" ]:
290
- if gpo ["pinNumber" ] not in powered_pins :
291
- #print("Turning off pin " + str(gpo["pinNumber"]))
292
- GPIO .output (gpo ["pinNumber" ], getOutputValue (False ))
293
- gpo ["lastState" ] = False
286
+ for gpo_group in config_object ["gpo_groups" ]:
287
+ if device_state ["deviceId" ] == gpo_group ["deviceId" ]:
288
+ for gpo in gpo_group ["gpos" ]:
289
+ if gpo ["pinNumber" ] not in powered_pins :
290
+ #print("Turning off pin " + str(gpo["pinNumber"]))
291
+ GPIO .output (gpo ["pinNumber" ], getOutputValue (False ))
292
+ gpo ["lastState" ] = False
294
293
#print(powered_pins, datetime.now().time())
295
294
296
295
class TallyArbiterServerListener :
You can’t perform that action at this time.
0 commit comments