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 <nikolaptr6@gmail.com>
This commit is contained in:
parent
0ec0b3cd86
commit
eabef50991
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user