From f3ca06fa31557b7796ffb222cad761fd87939b24 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Mon, 18 Jun 2018 00:39:46 +0200 Subject: [PATCH] payload.cpp edited --- src/payload.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/payload.cpp b/src/payload.cpp index 86710382..b3b73e18 100644 --- a/src/payload.cpp +++ b/src/payload.cpp @@ -170,9 +170,8 @@ void TTNpacked::writeTemperature(float temperature) { t = ~-t; t = t + 1; } - buffer[cursor] = (byte)((t >> 8) & 0xFF); - buffer[cursor+1] = (byte)t & 0xFF; - cursor += 2; + buffer[cursor++] = (byte)((t >> 8) & 0xFF); + buffer[cursor++] = (byte)t & 0xFF; } void TTNpacked::writeBitmap(bool a, bool b, bool c, bool d, bool e, bool f,