Fix, temperature is signed, may be below 0°C
authorNathael Pajani <nathael.pajani@ed3l.fr>
Thu, 11 Jun 2020 19:07:08 +0000 (21:07 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:14:24 +0000 (17:14 +0100)
test_sensor_env/main.c

index 53adfb5..646b4a9 100644 (file)
@@ -126,7 +126,8 @@ void bme_config(int uart_num)
 
 void bme_display(int uart_num)
 {
-       uint32_t pressure = 0, temp = 0;
+       uint32_t pressure = 0;
+       int32_t temp = 0;
        uint16_t humidity = 0;
        int ret = 0;