diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-07-11 13:41:21 +0200 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2017-07-11 13:41:21 +0200 |
commit | 891128159352621f6694d6a62b0af6a451b32ec7 (patch) | |
tree | 6262f8e3448a42252ddc736c9ee0a98e1110720c /subsurface_enabled_translations | |
parent | b409e9fc91d87bbd5f88c53cf937cf73a66821f4 (diff) | |
download | subsurface-891128159352621f6694d6a62b0af6a451b32ec7.tar.gz |
OSTC over BLE: read a long as needed
See also b409e9fc91d87bbd5 and 709c1df2af4b87. The OSTC parser
cannot handle reads of single 20 byte BLE packages in serial mode.
Instead of doing a deeper down agressive read, we can read on
the serial level more subtile. As the parser is requesting a
specific number of bytes, we just read that number of bytes and
return them. As the 20 byte BLE packets do (obviously) not
align with the reading requirement of the libdc parser, a little
housekeeing needs to be done in between individual reads.
CAVEAT 1: In contradiction to 709c1df2af4b87, this is supposed to
work for all parsers that properly specify the needed bytes to fetch.
CAVEAT 2: All above tested on Linux Desktop with bluez stack.
Subsurface mobile is step 2.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'subsurface_enabled_translations')
0 files changed, 0 insertions, 0 deletions