mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
Master uavcan mainline (#6313)
* Update libuavcan to upstream master with PX4 contrib for NuttX 7.16+ * Release any 64B blocks not needed by usavcan after FW server is stopped. We simply call the srrink methode after the server stop. See https://github.com/PX4/Firmware/pull/3005#issue-111885687 for backgound
This commit is contained in:
Submodule src/modules/uavcan/libuavcan updated: ed47da5b2a...dcbb573972
@@ -1458,11 +1458,13 @@ int uavcan_main(int argc, char *argv[])
|
||||
|
||||
int rv = inst->fw_server(UavcanNode::Stop);
|
||||
|
||||
/* Let's recover any memory we can */
|
||||
|
||||
inst->shrink();
|
||||
if (rv < 0) {
|
||||
warnx("Firmware Server Failed to Stop %d", rv);
|
||||
::exit(rv);
|
||||
}
|
||||
|
||||
::exit(0);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user