projects
/
sigrok-firmware-fx2lafw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
8e269f7
)
bugfix in hantek 6022BL voltage range selection
author
Philip Gottschling
<redacted>
Sat, 29 Dec 2018 13:58:50 +0000
(14:58 +0100)
committer
Uwe Hermann
<redacted>
Sat, 1 Jun 2019 15:55:57 +0000
(17:55 +0200)
This fixes bug #1360.
hw/hantek-6022bl/fw.c
patch
|
blob
|
blame
|
history
diff --git
a/hw/hantek-6022bl/fw.c
b/hw/hantek-6022bl/fw.c
index a05f4cbde1ed4d18d0e3be505fdb6b672bf76be8..115990a9dc128145f3905d9110c6b13cfde650fe 100644
(file)
--- 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);