mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
BLE support: the G2 wants packages one at a time
Just like the EON Steel it doesn't want us to loop until all packages have been received. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4b9ba4c367
commit
55df597994
1 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ static int debugCounter;
|
|||
#define IS_HW(_d) same_string((_d)->vendor, "Heinrichs Weikamp")
|
||||
#define IS_SHEARWATER(_d) same_string((_d)->vendor, "Shearwater")
|
||||
#define IS_EON_STEEL(_d) same_string((_d)->product, "EON Steel")
|
||||
#define IS_G2(_d) same_string((_d)->product, "G2")
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
@ -210,7 +211,7 @@ dc_status_t BLEObject::read(void *data, size_t size, size_t *actual)
|
|||
offset += packet.size();
|
||||
*actual += packet.size();
|
||||
// EON Steel wants to read only one packet at a time
|
||||
if (IS_EON_STEEL(device))
|
||||
if (IS_EON_STEEL(device) || IS_G2(device))
|
||||
goto we_are_done;
|
||||
}
|
||||
waitFor(50); // and process some Qt events to see if there is more data coming in.
|
||||
|
|
Loading…
Reference in a new issue