Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodyguy committed Jul 17, 2024
1 parent d3fc355 commit c0404ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions drivers/sensor/hx711/filters/ema.h
Original file line number Diff line number Diff line change
@@ -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 <stdint.h>

Expand All @@ -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_ */
#endif /* ZEPHYR_DRIVERS_SENSOR_HX711_EMA_FILTER_H_ */

0 comments on commit c0404ba

Please sign in to comment.