Commit c6e283fd authored by Matthieu Cattin's avatar Matthieu Cattin

Reverse channel order to fix calibration box V2.

parent fe210323
...@@ -45,7 +45,7 @@ class CCalibr_box: ...@@ -45,7 +45,7 @@ class CCalibr_box:
# !! ONLY FOR BOX V2 !! # !! ONLY FOR BOX V2 !!
def select_output_ch(self, channel, out='100mV'): def select_output_ch(self, channel, out='100mV'):
if channel >= 1 and channel <= 4: if channel >= 1 and channel <= 4:
value = ((channel-1)<<2) value = ((4-channel)<<2)
else: else:
raise Exception('Invalid channel number, must be [1..4]!') raise Exception('Invalid channel number, must be [1..4]!')
#print hex(value) #print hex(value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment