From ee60d97d25737af6e8c26415390c6a485dbf2ea0 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Sat, 19 Feb 2022 13:42:55 -0500 Subject: [PATCH] fixup --- watch-library/shared/driver/lis2dw.c | 2 +- watch-library/shared/driver/lis2dw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/watch-library/shared/driver/lis2dw.c b/watch-library/shared/driver/lis2dw.c index f5d83b1..f273fab 100644 --- a/watch-library/shared/driver/lis2dw.c +++ b/watch-library/shared/driver/lis2dw.c @@ -137,7 +137,7 @@ void lis2dw_set_bandwidth_filtering(lis2dw_bandwidth_filtering_mode_t bwfilter) watch_i2c_write8(LIS2DW_ADDRESS, LIS2DW_REG_CTRL6, val | bits); } -lis2dw_bandwidth_filtering_mode_t lis2dw_get_filtering(void) { +lis2dw_bandwidth_filtering_mode_t lis2dw_get_bandwidth_filtering(void) { uint8_t retval = watch_i2c_read8(LIS2DW_ADDRESS, LIS2DW_REG_CTRL6) & (LIS2DW_CTRL6_VAL_BANDWIDTH_DIV20); retval >>= 6; return (lis2dw_bandwidth_filtering_mode_t)retval; diff --git a/watch-library/shared/driver/lis2dw.h b/watch-library/shared/driver/lis2dw.h index 2581463..da1fb66 100644 --- a/watch-library/shared/driver/lis2dw.h +++ b/watch-library/shared/driver/lis2dw.h @@ -291,7 +291,7 @@ lis2dw_filter_t lis2dw_get_filter_type(void); void lis2dw_set_bandwidth_filtering(lis2dw_bandwidth_filtering_mode_t bwfilter); -lis2dw_bandwidth_filtering_mode_t lis2dw_get_filtering(void); +lis2dw_bandwidth_filtering_mode_t lis2dw_get_bandwidth_filtering(void); void lis2dw_set_mode(lis2dw_mode_t mode);