diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-12-20 08:35:51 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-12-20 08:35:51 +0100 |
commit | ffa313e80a27005405334db6491075442f6e1abd (patch) | |
tree | 23a48c91cfc0810afe88cc6104d0667516fbd4a9 /apps/SoilMoisture.cpp | |
parent | af416f81b14a3bee682e300b165a6efdb9739d54 (diff) | |
download | ble-toys-ffa313e80a27005405334db6491075442f6e1abd.tar.gz ble-toys-ffa313e80a27005405334db6491075442f6e1abd.tar.bz2 ble-toys-ffa313e80a27005405334db6491075442f6e1abd.tar.xz ble-toys-ffa313e80a27005405334db6491075442f6e1abd.zip |
o Using more natural byte ordering in the code. No external effect.
o Using global ==, != and < operators instead of in-class operators for
better compatibility with STL.
ByteBuffer:
o Renaming setPosition() to setCursor().
Diffstat (limited to 'apps/SoilMoisture.cpp')
-rw-r--r-- | apps/SoilMoisture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/SoilMoisture.cpp b/apps/SoilMoisture.cpp index fcf81bd..3de85d2 100644 --- a/apps/SoilMoisture.cpp +++ b/apps/SoilMoisture.cpp @@ -95,7 +95,7 @@ SoilMoisture::SoilMoisture(const BluetoothGattPtr &gatt, temperatureCharacteristic(temperatureCharacteristic), lightCharacteristic(lightCharacteristic) {} void SoilMoisture::writeAndRead(const BluetoothGattCharacteristicPtr &c, ByteBuffer &buffer) { - buffer.setPosition(0); + buffer.setCursor(0); uint8_t expectedCode = buffer.peek8(0); |