drivers: sensor: mmc56x3: add missing return statement
Added a missing return statement in the mmc56x3_decoder_get_size_info causing incorrect size calculation for single channel data Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
854713cc88
commit
5fd565e6b4
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ static int mmc56x3_decoder_get_size_info(struct sensor_chan_spec chan_spec, size
|
|||
case SENSOR_CHAN_MAGN_Z:
|
||||
*base_size = sizeof(struct sensor_q31_sample_data);
|
||||
*frame_size = sizeof(struct sensor_q31_sample_data);
|
||||
return 0;
|
||||
case SENSOR_CHAN_MAGN_XYZ:
|
||||
*base_size = sizeof(struct sensor_three_axis_data);
|
||||
*frame_size = sizeof(struct sensor_three_axis_sample_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue