Flower Care: Fix temperature reading for negative values
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…
Reference in New Issue