[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:
Gautier Hattenberger
2020-03-16 10:30:38 +01:00
committed by GitHub
parent 96126e2878
commit 683037ad95
41 changed files with 338 additions and 338 deletions
+1 -1
View File
@@ -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"/>