mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
fixup
This commit is contained in:
parent
691c068e6e
commit
ee60d97d25
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue