Fix MS01 calculation

This commit is contained in:
Theo Arends 2022-04-10 17:50:33 +02:00
parent c7323eea74
commit 36bf6c5cc1
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ bool DhtRead(uint32_t sensor) {
break;
}
case GPIO_MS01: { // Sonoff MS01
uint32_t voltage = ((dht_data[0] << 8) | dht_data[1]);
int32_t voltage = ((dht_data[0] << 8) | dht_data[1]);
// AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("DHT: MS01 %d"), voltage);