--- a/ConfigTreeNode.py Wed Aug 16 17:27:58 2017 +0300
+++ b/ConfigTreeNode.py Thu Aug 17 09:55:39 2017 +0300
@@ -452,12 +452,12 @@
res = DesiredChannel
while res in AllChannels: # While channel not free
if res < CurrentChannel: # Want to go down ?
- res -= 1 # Test for n-1
+ res -= 1 # Test for n-1
if res < 0:
self.GetCTRoot().logger.write_warning(_("Cannot find lower free IEC channel than %d\n") % CurrentChannel)
return CurrentChannel # Can't go bellow 0, do nothing
else: # Want to go up ?
- res += 1 # Test for n-1
+ res += 1 # Test for n-1
# Finally set IEC Channel
self.BaseParams.setIEC_Channel(res)
return res