mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 18:03:34 +08:00
uavcannode_gps_demo:Use inttypes
This commit is contained in:
committed by
Julian Oes
parent
616401190c
commit
42e4ea86b1
@@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@@ -299,7 +300,7 @@ void processTxRxOnce(CanardInstance *ins, CanardSocketInstance *sock_ins, int ti
|
|||||||
// It is possible to statically prove that an out-of-memory will never occur for a given application if
|
// It is possible to statically prove that an out-of-memory will never occur for a given application if
|
||||||
// the heap is sized correctly; for background, refer to the Robson's Proof and the documentation for O1Heap.
|
// the heap is sized correctly; for background, refer to the Robson's Proof and the documentation for O1Heap.
|
||||||
// Reception of an invalid frame is NOT an error.
|
// Reception of an invalid frame is NOT an error.
|
||||||
fprintf(stderr, "Receive error %d\n", result);
|
fprintf(stderr, "Receive error %" PRId32 "\n", result);
|
||||||
|
|
||||||
} else if (result == 1) {
|
} else if (result == 1) {
|
||||||
printf("Receive portId %i\n", receive.port_id);
|
printf("Receive portId %i\n", receive.port_id);
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#include "socketcan.h"
|
#include "socketcan.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
* Author: hovergames
|
* Author: hovergames
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "uorb_converter.h"
|
#include "uorb_converter.h"
|
||||||
@@ -95,7 +96,7 @@ void uorbProcessSub(int timeout_msec)
|
|||||||
// An error has occurred: either an argument is invalid or we've ran out of memory.
|
// An error has occurred: either an argument is invalid or we've ran out of memory.
|
||||||
// It is possible to statically prove that an out-of-memory will never occur for a given application if the
|
// It is possible to statically prove that an out-of-memory will never occur for a given application if the
|
||||||
// heap is sized correctly; for background, refer to the Robson's Proof and the documentation for O1Heap.
|
// heap is sized correctly; for background, refer to the Robson's Proof and the documentation for O1Heap.
|
||||||
PX4_ERR("canardTxPush error %d", result);
|
PX4_ERR("canardTxPush error %" PRId32, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user