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:
Ryan McClelland 2025-05-20 11:44:17 -07:00 committed by Daniel DeGrasse
parent b1dac48faa
commit c7e1f0b3da

View File

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