mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
gps_inject_data: fixed integer overflow
- array length of data was increased without changing the data type of the variable holding the length Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
parent
b30c2c22b3
commit
baab4501f6
@ -2,7 +2,7 @@ uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint32 device_id # unique device ID for the sensor that does not change between power cycles
|
||||
|
||||
uint8 len # length of data
|
||||
uint16 len # length of data
|
||||
uint8 flags # LSB: 1=fragmented
|
||||
uint8[300] data # data to write to GPS device (RTCM message)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user