This commit is contained in:
Joey Castillo 2022-02-19 13:42:55 -05:00
parent 691c068e6e
commit ee60d97d25
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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);