tests/driver_hts221: fix missing words and cleanup
This commit is contained in:
parent
8fd79b4c50
commit
6ea16d7d96
@ -47,10 +47,10 @@ int main(void)
|
|||||||
uint16_t hum = 0;
|
uint16_t hum = 0;
|
||||||
int16_t temp = 0;
|
int16_t temp = 0;
|
||||||
if (hts221_read_humidity(&dev, &hum) != HTS221_OK) {
|
if (hts221_read_humidity(&dev, &hum) != HTS221_OK) {
|
||||||
puts(" -- failed to humidity!");
|
puts(" -- failed to read humidity!");
|
||||||
}
|
}
|
||||||
if (hts221_read_temperature(&dev, &temp) != HTS221_OK) {
|
if (hts221_read_temperature(&dev, &temp) != HTS221_OK) {
|
||||||
puts(" -- failed to temperature!");
|
puts(" -- failed to read temperature!");
|
||||||
}
|
}
|
||||||
bool negative = (temp < 0);
|
bool negative = (temp < 0);
|
||||||
if (negative) {
|
if (negative) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user