1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 00:09:46 +01:00

drivers/dht: fix compilation with LLVM

This commit is contained in:
Marian Buschsieweke 2023-07-17 15:29:27 +02:00
parent f4c5cf173d
commit 510c6fd84e
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -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");