aboutsummaryrefslogtreecommitdiff
path: root/apps/SoilMoisture.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-11-19 22:09:59 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2018-11-19 22:09:59 +0100
commitc83b35d6456c8a77e5b8f6a08c9262122c3cbcfc (patch)
tree68230e76666b5ef2a01471fc9d6951a719856662 /apps/SoilMoisture.h
parent52450ed3034b0ba058ea2c9f9baa2d5f78df6a94 (diff)
downloadble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.tar.gz
ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.tar.bz2
ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.tar.xz
ble-toys-c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc.zip
ByteBuffer:
o Reducing silliness, no allocations by ByteBuffer. o Create StaticByteBuffer as a nice one-liner to create a buffer. LinuxBluetooth: methods that want a buffer needs to pass it in, ByteBuffer is not allocating anymore.
Diffstat (limited to 'apps/SoilMoisture.h')
-rw-r--r--apps/SoilMoisture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/SoilMoisture.h b/apps/SoilMoisture.h
index 499c9f6..3bfd0d8 100644
--- a/apps/SoilMoisture.h
+++ b/apps/SoilMoisture.h
@@ -50,7 +50,7 @@ private:
const o<BluetoothGattCharacteristicPtr> temperatureCharacteristic,
const o<BluetoothGattCharacteristicPtr> lightCharacteristic);
- ByteBuffer writeAndRead(const BluetoothGattCharacteristicPtr &c, ByteBuffer &requestBytes);
+ void writeAndRead(const BluetoothGattCharacteristicPtr &c, ByteBuffer &requestBytes);
shared_ptr<BluetoothGatt> gatt;
shared_ptr<BluetoothGattService> s;