From 55df5979941c924ce66b491f54ccbad0c3e7c232 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 9 Jul 2017 11:57:32 -0700 Subject: 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 --- core/qt-ble.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp index ff4bc3eda..0ce52bc02 100644 --- a/core/qt-ble.cpp +++ b/core/qt-ble.cpp @@ -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. -- cgit v1.2.3-70-g09d2