drivers: sensor: bmm350: fix no averaging val for oversampling
Fix the oversampling value to be 1 from 0 for no oversampling to be consistant with other sensor drivers. Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
This commit is contained in:
parent
b1dac48faa
commit
c7e1f0b3da
@ -710,7 +710,7 @@ static uint8_t mag_odr_to_reg(const struct sensor_value *val)
|
||||
static uint8_t mag_osr_to_reg(const struct sensor_value *val)
|
||||
{
|
||||
switch (val->val1) {
|
||||
case 0:
|
||||
case 1:
|
||||
return BMM350_NO_AVERAGING;
|
||||
case 2:
|
||||
return BMM350_AVERAGING_2;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user