Skip to content
Snippets Groups Projects
Commit 54fc0fd2 authored by Matthias Kolja Miehl's avatar Matthias Kolja Miehl
Browse files

tests/driver_dht: fix invalidPrintfArgType_sint

Since the argument type is 'unsigned int', the printf
format string has to be '%u' instead of '%i'.
parent 39ecc12d
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ int main(void) ...@@ -53,7 +53,7 @@ int main(void)
int_hum = hum / 10; int_hum = hum / 10;
dec_hum = hum - (int_hum * 10); dec_hum = hum - (int_hum * 10);
printf("DHT device #%i - ", i); printf("DHT device #%u - ", i);
printf("temp: %i.%i°C, ", int_temp, dec_temp); printf("temp: %i.%i°C, ", int_temp, dec_temp);
printf("relative humidity: %i.%i%%\n", int_hum, dec_hum); printf("relative humidity: %i.%i%%\n", int_hum, dec_hum);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment