diff --git a/drivers/include/hts221.h b/drivers/include/hts221.h index 5bb2c5fd6d3a79693a46475b62e4bee6af5021a9..12e3b58602b38c3725d6bb3b5f7950a3d778e462 100644 --- a/drivers/include/hts221.h +++ b/drivers/include/hts221.h @@ -94,7 +94,7 @@ int hts221_init(hts221_t *dev, const hts221_params_t *params); int hts221_reboot(const hts221_t *dev); /** - * @brief Set device to continues measurements + * @brief Set device to one shot measurement * * @param[in] dev device descriptor of sensor * @@ -103,10 +103,10 @@ int hts221_reboot(const hts221_t *dev); int hts221_one_shot(const hts221_t *dev); /** - * @brief Set device to continues measurements + * @brief Set device to continuous measurements * * @param[in] dev device descriptor of sensor - * @param[in] rate conversion rate for continues mode + * @param[in] rate conversion rate for continuous mode * * @return 0 on success, or error otherwise */ diff --git a/tests/driver_hts221/main.c b/tests/driver_hts221/main.c index eea93bb019ce434304e5afdeabb19ffc3d15428f..e4310c54a35cdf89e847d48ea48aa37a71420933 100644 --- a/tests/driver_hts221/main.c +++ b/tests/driver_hts221/main.c @@ -47,17 +47,17 @@ int main(void) uint16_t hum = 0; int16_t temp = 0; 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) { - puts(" -- failed to temperature!"); + puts(" -- failed to read temperature!"); } bool negative = (temp < 0); if (negative) { temp = -temp; } - printf("H: %u.%u%%, T:%c%u.%u°C\n", (hum/10), (hum%10), - (negative ? '-' : ' '), (temp/10), (temp%10)); + printf("H: %u.%u%%, T:%c%u.%u°C\n", (hum / 10), (hum % 10), + (negative ? '-' : ' '), (temp / 10), (temp % 10)); xtimer_sleep(SLEEP_S); } return 0;