Flower Care: Fix temperature reading for negative values
This commit is contained in:
parent
b9ea58a0e5
commit
a32116b56b
@ -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