Skip to content
Snippets Groups Projects
Commit 493f195d authored by jkerdreu's avatar jkerdreu
Browse files

Added some extra check


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2054 b32b6428-25c9-4566-ad07-03861ab6144f
parent e7aa67ef
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ class OutputChannel(object):
self.ipx.relay_off(self.chan)
def toggle(self):
if self.state.value:
if self.state.value == True:
self.off()
else:
self.on()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment