mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 10:01:36 +08:00
POSIX: fixed type used in USEC2TICKS
The macro was using a constant defined as a long instead on an unsigned long. Made corresponsing changes to barosim. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -131,7 +131,7 @@ __BEGIN_DECLS
|
||||
extern long PX4_TICKS_PER_SEC;
|
||||
__END_DECLS
|
||||
|
||||
#define USEC_PER_TICK (1000000L/PX4_TICKS_PER_SEC)
|
||||
#define USEC_PER_TICK (1000000UL/PX4_TICKS_PER_SEC)
|
||||
#define USEC2TICK(x) (((x)+(USEC_PER_TICK/2))/USEC_PER_TICK)
|
||||
|
||||
#define px4_statfs_buf_f_bavail_t unsigned long
|
||||
|
||||
Reference in New Issue
Block a user