mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-07-18 00:43:48 +02:00
Merge PR #77: Flower Care: Fix temperature reading for negative values
This commit is contained in:
commit
b6d9e197a9
@ -124,7 +124,7 @@ void FlowerCare::processSensorData(const QByteArray &data)
|
||||
QByteArray copy = data;
|
||||
QDataStream stream(©, QIODevice::ReadOnly);
|
||||
stream.setByteOrder(QDataStream::LittleEndian);
|
||||
quint16 temp;
|
||||
qint16 temp;
|
||||
stream >> temp;
|
||||
qint8 skip;
|
||||
stream >> skip;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user