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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue