From f245d6b1a7edaa3b403007b704b4d54ecb7f3737 Mon Sep 17 00:00:00 2001 From: px4dev Date: Sun, 24 Feb 2013 11:42:34 -0800 Subject: Use hrt_elapsed_time() in cases where we can't be sure the timestamp won't change under us. --- apps/px4io/px4io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/px4io/px4io.h') diff --git a/apps/px4io/px4io.h b/apps/px4io/px4io.h index 22993fb52..7b4b07c2c 100644 --- a/apps/px4io/px4io.h +++ b/apps/px4io/px4io.h @@ -105,12 +105,12 @@ extern uint16_t r_page_servo_failsafe[]; /* PX4IO_PAGE_FAILSAFE_PWM */ */ struct sys_state_s { - uint64_t rc_channels_timestamp; + volatile uint64_t rc_channels_timestamp; /** * Last FMU receive time, in microseconds since system boot */ - uint64_t fmu_data_received_time; + volatile uint64_t fmu_data_received_time; }; -- cgit v1.2.3