Skip to content

Commit c7e1f0b

Browse files
XenuIsWatchingdanieldegrasse
authored andcommitted
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>
1 parent b1dac48 commit c7e1f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/bosch/bmm350/bmm350.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ static uint8_t mag_odr_to_reg(const struct sensor_value *val)
710710
static uint8_t mag_osr_to_reg(const struct sensor_value *val)
711711
{
712712
switch (val->val1) {
713-
case 0:
713+
case 1:
714714
return BMM350_NO_AVERAGING;
715715
case 2:
716716
return BMM350_AVERAGING_2;

0 commit comments

Comments
 (0)