From 510c6fd84ebd1faa32836a20bcca445d582fa2fe Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 17 Jul 2023 15:29:27 +0200 Subject: [PATCH] drivers/dht: fix compilation with LLVM --- drivers/dht/dht.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dht/dht.c b/drivers/dht/dht.c index 31990f4a24..5f26a0b533 100644 --- a/drivers/dht/dht.c +++ b/drivers/dht/dht.c @@ -214,7 +214,7 @@ int dht_init(dht_t *dev, const dht_params_t *params) } else { DEBUG("\n[dht] dht_init: power-up duration: %" PRIi16 " ms\n", - (int16_t)(POWER_WAIT_TIMEOUT / US_PER_MS) - timeout); + (int16_t)(POWER_WAIT_TIMEOUT / US_PER_MS - timeout)); } /* The previous test does not ensure the sensor presence in case an * external pull-up resistor is used. */ @@ -226,7 +226,7 @@ int dht_init(dht_t *dev, const dht_params_t *params) } else { DEBUG("\n[dht] dht_init: presence check duration: %" PRIi16 " ms\n", - (int16_t)(POWER_WAIT_TIMEOUT / US_PER_MS) - timeout); + (int16_t)(POWER_WAIT_TIMEOUT / US_PER_MS - timeout)); } DEBUG_PUTS("[dht] dht_init: success");