]> sigrok.org Git - libsigrok.git/commit
hameg-hmo: Change the way vdiv and timebase are saved.
authorpoljar (Damir Jelić) <redacted>
Thu, 16 Jan 2014 14:28:53 +0000 (15:28 +0100)
committerBert Vermeulen <redacted>
Thu, 16 Jan 2014 15:27:35 +0000 (16:27 +0100)
commit8de2dc3b2e6ee1cb2df31db567e59f197623007c
tree6f0d96c2a3f015b7be3b5ba68932e86fc346d747
parent66e3219dbd086dc57087281f10fdefbe060ee5c8
hameg-hmo: Change the way vdiv and timebase are saved.

The current vertical division setting (per channel) and the timebase are stored
as a floating point number. This is suboptimal since clients expect us to send
this information to them in form of a rational number.

Store only the index of the current setting since all the supported settings are
already stored inside of an array.
hardware/hameg-hmo/api.c
hardware/hameg-hmo/protocol.c
hardware/hameg-hmo/protocol.h