mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-07-19 00:54:53 +02:00
Fix magnet sensor toggle
This commit is contained in:
parent
7bf7ed3784
commit
3c04f0057a
@ -305,7 +305,7 @@ void SensorTag::processKeyData(const QByteArray &data)
|
||||
quint8 flags = static_cast<quint8>(data.at(0));
|
||||
setLeftButtonPressed(testBitUint8(flags, 0));
|
||||
setRightButtonPressed(testBitUint8(flags, 1));
|
||||
setMagnetDetected(!testBitUint8(flags, 2));
|
||||
setMagnetDetected(testBitUint8(flags, 2));
|
||||
}
|
||||
|
||||
void SensorTag::processHumidityData(const QByteArray &data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user