From b4fb63cb807f626424c3b5e5c272794c46b8d567 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 11 Jun 2020 21:07:08 +0200 Subject: [PATCH] =?utf8?q?Fix,=20temperature=20is=20signed,=20may=20be=20b?= =?utf8?q?elow=200=C2=B0C?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- test_sensor_env/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.43.0