Changeset a4bb61b in subsurface


Ignore:
Timestamp:
Jul 4, 2017, 9:30:05 AM (4 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
db8200a
Parents:
8a1f5b9
git-author:
Dirk Hohndel <dirk@…> (07/04/17 09:30:02)
git-committer:
Dirk Hohndel <dirk@…> (07/04/17 09:30:05)
Message:

BLE download: EON Steel doesn't want to loop over reads

This seems a bit brutal, but it does the trick and makes EON Steel
downloads work again.

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/qt-ble.cpp

    r8a1f5b9 ra4bb61b  
    2525#define IS_HW(_d) same_string((_d)->vendor, "Heinrichs Weikamp")
    2626#define IS_SHEARWATER(_d) same_string((_d)->vendor, "Shearwater")
     27#define IS_EON_STEEL(_d) same_string((_d)->product, "EON Steel")
    2728
    2829extern "C" {
     
    206207                        offset += packet.size();
    207208                        *actual += packet.size();
     209                        // EON Steel wants to read only one packet at a time
     210                        if (IS_EON_STEEL(device))
     211                                goto we_are_done;
    208212                }
    209213                waitFor(50); // and process some Qt events to see if there is more data coming in.
    210214        }
     215we_are_done:
    211216        return DC_STATUS_SUCCESS;
    212217}
Note: See TracChangeset for help on using the changeset viewer.