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:
Mark Charlebois
2015-06-03 11:49:28 -07:00
parent 122c52c731
commit f763c4cc0e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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