Fix to use the new canardInit() function

This commit is contained in:
Alan Carvalho de Assis 2017-05-12 16:40:31 -03:00
parent 86795c797d
commit 8011648ad0

View File

@ -470,7 +470,7 @@ static int canard_daemon(int argc, char *argv[])
#endif #endif
canardInit(&canard, canard_memory_pool, sizeof(canard_memory_pool), canardInit(&canard, canard_memory_pool, sizeof(canard_memory_pool),
onTransferReceived, shouldAcceptTransfer); onTransferReceived, shouldAcceptTransfer, (void *)(12345));
canardSetLocalNodeID(&canard, CONFIG_EXAMPLES_LIBCANARD_NODE_ID); canardSetLocalNodeID(&canard, CONFIG_EXAMPLES_LIBCANARD_NODE_ID);
printf("canard_daemon: canard initialized\n"); printf("canard_daemon: canard initialized\n");
printf("start node (ID: %d Name: %s)\n", CONFIG_EXAMPLES_LIBCANARD_NODE_ID, printf("start node (ID: %d Name: %s)\n", CONFIG_EXAMPLES_LIBCANARD_NODE_ID,