Skip to content

Commit

Permalink
drivers: sensor: fix missing break in mmc56x3_decoder
Browse files Browse the repository at this point in the history
introduce breaks in mmc56x3_decoder.c

Signed-off-by: Jilay Pandya <[email protected]>
  • Loading branch information
jilaypandya authored and kartben committed Dec 12, 2024
1 parent 96eb476 commit 772b206
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/sensor/memsic/mmc56x3/mmc56x3_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ static int mmc56x3_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec
} else {
return -ENODATA;
}
break;
case SENSOR_CHAN_MAGN_Y:
if (edata->has_magn_y) {
struct sensor_q31_data *out = data_out;
Expand All @@ -110,6 +111,7 @@ static int mmc56x3_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec
} else {
return -ENODATA;
}
break;
case SENSOR_CHAN_MAGN_Z:
if (edata->has_magn_z) {
struct sensor_q31_data *out = data_out;
Expand All @@ -121,6 +123,7 @@ static int mmc56x3_decoder_decode(const uint8_t *buffer, struct sensor_chan_spec
} else {
return -ENODATA;
}
break;
case SENSOR_CHAN_MAGN_XYZ: {
if (edata->has_magn_x && edata->has_magn_y && edata->has_magn_z) {
struct sensor_three_axis_data *out_3 = data_out;
Expand Down

0 comments on commit 772b206

Please sign in to comment.