Commit 59402fd8 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Anas Nashif
Browse files

drivers: sensor: nxp: kinetis: temp: fix memset() length



Use the correct buffer size when calling memset().

Fixes: #73093

Signed-off-by: default avatarHenrik Brix Andersen <hebad@vestas.com>
parent 0a49b788
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");