mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-08-05 03:33:51 +02:00
Flower Care: Fix temperature reading for negative values
This commit is contained in:
parent
35f4ba6ce4
commit
700694a416
@ -124,7 +124,7 @@ void FlowerCare::processSensorData(const QByteArray &data)
|
|||||||
QByteArray copy = data;
|
QByteArray copy = data;
|
||||||
QDataStream stream(©, QIODevice::ReadOnly);
|
QDataStream stream(©, QIODevice::ReadOnly);
|
||||||
stream.setByteOrder(QDataStream::LittleEndian);
|
stream.setByteOrder(QDataStream::LittleEndian);
|
||||||
quint16 temp;
|
qint16 temp;
|
||||||
stream >> temp;
|
stream >> temp;
|
||||||
qint8 skip;
|
qint8 skip;
|
||||||
stream >> skip;
|
stream >> skip;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user