mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 08:55:51 +08:00
[datalink] parse the correct datalink buffer (#2494)
When using a different datalink buffer than dl_buffer, the callback functions from the modules must use the buffer address passed as a parameter, otherwise there is no guarentee that the correct buffer will be parsed. Co-authored-by: pprz <xp31@free.fr>
This commit is contained in:
committed by
GitHub
parent
96126e2878
commit
683037ad95
@@ -24,7 +24,7 @@
|
||||
<periodic fun="atmega_i2c_cam_ctrl_periodic()" autorun="TRUE" freq="10"/>
|
||||
<event fun="atmega_i2c_cam_ctrl_event()"/>
|
||||
|
||||
<datalink message="PAYLOAD_COMMAND" fun="ParseCameraCommand()"/>
|
||||
<datalink message="PAYLOAD_COMMAND" fun="ParseCameraCommand(buf)"/>
|
||||
|
||||
<makefile target="ap">
|
||||
<configure name="ATMEGA_I2C_DEV" default="i2c0" case="upper|lower"/>
|
||||
|
||||
Reference in New Issue
Block a user