aboutsummaryrefslogtreecommitdiffstats
path: root/core/serial_usb_android.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-07-20 12:28:34 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-07-23 11:16:00 -0700
commit0c84f369c35bf416071b9ef6d5a401b457fd4a38 (patch)
treed5e3fd55c7c5113537d14a17ee2406ecbf4b1e19 /core/serial_usb_android.h
parent8ac0519a9954b58f43bc42dd70c5643169543999 (diff)
downloadsubsurface-0c84f369c35bf416071b9ef6d5a401b457fd4a38.tar.gz
core: use int16_t for sensor-id
The sensor-id in the sample struct was a uint8_t, with all the known problems of unsigned integers. In the rest of the code cylinder ids are signed integers. To avoid confusion, make it a signed int. int8_t should be enough (max. 127 cylinders). To allow for degenerate cases, use an int16_t. 16k cylinders should be enough for everyone. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/serial_usb_android.h')
0 files changed, 0 insertions, 0 deletions