diff --git a/README.md b/README.md index a1b828f..3f924ad 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Define HX711 in your board `.overlay` like this example: }; ``` -There are also optional output filter that you can enable and configure. +There are also optional output filters that you can enable and configure. The first one is a median filter to discard any peak values. ```ini CONFIG_HX711_ENABLE_MEDIAN_FILTER=y diff --git a/drivers/sensor/hx711/filters/ema.h b/drivers/sensor/hx711/filters/ema.h index 7107f16..c671e16 100644 --- a/drivers/sensor/hx711/filters/ema.h +++ b/drivers/sensor/hx711/filters/ema.h @@ -1,5 +1,5 @@ -#ifndef ZEPHYR_DRIVERS_SENSOR_HX711_MEDIAN_FILTER_H__EMA_FILTER_H_ -#define ZEPHYR_DRIVERS_SENSOR_HX711_MEDIAN_FILTER_H__EMA_FILTER_H_ +#ifndef ZEPHYR_DRIVERS_SENSOR_HX711_EMA_FILTER_H_ +#define ZEPHYR_DRIVERS_SENSOR_HX711_EMA_FILTER_H_ #include @@ -13,4 +13,4 @@ void ema_filter_init(ema_filter_t *f, int alpha, double initial_value); void ema_filter_reset(ema_filter_t *f, double initial_value); int32_t ema_filter_update(ema_filter_t *f, int32_t measurement); -#endif /* ZEPHYR_DRIVERS_SENSOR_HX711_MEDIAN_FILTER_H__EMA_FILTER_H_ */ \ No newline at end of file +#endif /* ZEPHYR_DRIVERS_SENSOR_HX711_EMA_FILTER_H_ */ \ No newline at end of file