From: Philip Gottschling Date: Sat, 29 Dec 2018 13:58:50 +0000 (+0100) Subject: bugfix in hantek 6022BL voltage range selection X-Git-Tag: sigrok-firmware-fx2lafw-0.1.7~5 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=87da1d2ca36220b7e55a80b3825a3cbf96c747b7;p=sigrok-firmware-fx2lafw.git bugfix in hantek 6022BL voltage range selection This fixes bug #1360. --- diff --git a/hw/hantek-6022bl/fw.c b/hw/hantek-6022bl/fw.c index a05f4cbd..115990a9 100644 --- a/hw/hantek-6022bl/fw.c +++ b/hw/hantek-6022bl/fw.c @@ -100,7 +100,7 @@ static BOOL set_voltage(BYTE channel, BYTE val) return FALSE; } - bits = bits << (channel ? 1 : 4); + bits = bits << (channel ? 4 : 1); mask = (channel) ? 0x70 : 0x0e; IOA = (IOA & ~mask) | (bits & mask);