drivers: sensor: nxp: kinetis: temp: fix memset() length
Use the correct buffer size when calling memset(). Fixes: #73093 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
0a49b788a4
commit
59402fd82e
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ static int temp_kinetis_init(const struct device *dev)
|
|||
},
|
||||
};
|
||||
|
||||
memset(&data->buffer, 0, ARRAY_SIZE(data->buffer));
|
||||
memset(&data->buffer, 0, sizeof(data->buffer));
|
||||
|
||||
if (!device_is_ready(config->adc)) {
|
||||
LOG_ERR("ADC device is not ready");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue