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:
David Sidrane
2017-01-12 13:28:38 -10:00
committed by GitHub
parent 0d3fd77ba9
commit 79d682e740
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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 {