1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 09:17:29 +01:00

Huami: Disable air quality indicator on Huami devices instead of showing 0

Thanks @ponyzucker

Closes #1834
This commit is contained in:
Andreas Shimokawa 2020-04-08 12:02:47 +02:00
parent fbc123e8d0
commit 89017ac58f

View File

@ -1928,7 +1928,7 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
buf.put((byte) 4);
buf.putInt(weatherSpec.timestamp);
buf.put((byte) (tz_offset_hours * 4));
buf.putShort((short) 0);
buf.putShort((short) -1);
if (supportsConditionString) {
buf.put(aqiString.getBytes());
buf.put((byte) 0);