summaryrefslogtreecommitdiffstats
path: root/core/qt-ble.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-11 20:31:40 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-11 20:32:48 -0700
commitb9f691a70093f1174d07a28a8d05b436e46478b2 (patch)
tree160907bd555a9b19d6924892f551d2a61438084f /core/qt-ble.h
parent45f36e251bb780b6276fcbe78e6ea849ec3ecc2b (diff)
parentfbaaa64a4a3cf3266b8afe62af578105ec32a374 (diff)
downloadsubsurface-b9f691a70093f1174d07a28a8d05b436e46478b2.tar.gz
Merge branch 'hw-o-ble-2' of https://github.com/janmulder/subsurface
Doing a manual merge from the command line in order to retain Jan's SHAs so that the commit message makes sense... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qt-ble.h')
-rw-r--r--core/qt-ble.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/qt-ble.h b/core/qt-ble.h
index 7368b71cd..ad5dfda2b 100644
--- a/core/qt-ble.h
+++ b/core/qt-ble.h
@@ -32,6 +32,7 @@ public slots:
void characteristicWritten(const QLowEnergyCharacteristic &c, const QByteArray &value);
void writeCompleted(const QLowEnergyDescriptor &d, const QByteArray &value);
dc_status_t setupHwTerminalIo(QList<QLowEnergyCharacteristic>);
+ dc_status_t setHwCredit(unsigned int c);
private:
QVector<QLowEnergyService *> services;
@@ -39,6 +40,7 @@ private:
QList<QByteArray> receivedPackets;
bool isCharacteristicWritten;
dc_user_device_t *device;
+ unsigned int hw_credit = 0;
QList<QUuid> hwAllCharacteristics = {
"{00000001-0000-1000-8000-008025000000}", // HW_OSTC_BLE_DATA_RX