From c83b35d6456c8a77e5b8f6a08c9262122c3cbcfc Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 19 Nov 2018 22:09:59 +0100 Subject: 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. --- apps/SoilMoisture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/SoilMoisture.h') 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 temperatureCharacteristic, const o lightCharacteristic); - ByteBuffer writeAndRead(const BluetoothGattCharacteristicPtr &c, ByteBuffer &requestBytes); + void writeAndRead(const BluetoothGattCharacteristicPtr &c, ByteBuffer &requestBytes); shared_ptr gatt; shared_ptr s; -- cgit v1.2.3