Update UniTemp

https://github.com/quen0n/unitemp-flipperzero/tree/dev
This commit is contained in:
MX 2023-01-07 02:08:15 +03:00
parent ddf4f268ea
commit 3fa11aa4a0
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5

View file

@ -262,7 +262,7 @@ UnitempStatus unitemp_singlewire_update(Sensor* sensor) {
//Проверка на отрицательность температуры
if(READ_BIT(raw, 1 << 15)) {
//Проверка на способ кодирования данных
if(READ_BIT(raw, 0x60)) {
if(READ_BIT(raw, 0x6000)) {
//Не оригинал
sensor->temp = (float)((int16_t)raw) / 10;
} else {