From: Nathael Pajani Date: Thu, 11 Jun 2020 19:07:08 +0000 (+0200) Subject: Fix, temperature is signed, may be below 0°C X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=b4fb63cb807f626424c3b5e5c272794c46b8d567;p=soft%2Flpc122x%2Fexamples Fix, temperature is signed, may be below 0°C --- diff --git a/test_sensor_env/main.c b/test_sensor_env/main.c index 53adfb5..646b4a9 100644 --- a/test_sensor_env/main.c +++ b/test_sensor_env/main.c @@ -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;