From eabef50991c3aab311ea2e9f713e7510b15b9b1e Mon Sep 17 00:00:00 2001 From: Nikola Petrovic Date: Sun, 19 Jan 2025 13:08:06 +0100 Subject: [PATCH] drivers: input: sbus: Fix SBUS parser overflow SBUS parser discards portion of the received data, this is a result of SBUS parser intermediate variable overflow. Fix by changing said variable type to uint32_t. Signed-off-by: Nikola Petrovic --- drivers/input/input_sbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input_sbus.c b/drivers/input/input_sbus.c index b9eb44e03e6..10e6498a698 100644 --- a/drivers/input/input_sbus.c +++ b/drivers/input/input_sbus.c @@ -123,7 +123,7 @@ static void input_sbus_input_report_thread(const struct device *dev, void *dummy uint8_t i, channel; uint8_t *sbus_channel_data = &data->sbus_frame[1]; /* Omit header */ - uint16_t value; + uint32_t value; int bits_read; unsigned int key; int ret;