aboutsummaryrefslogtreecommitdiff
path: root/apps/px4io/px4io.h
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-02-24 11:42:34 -0800
committerpx4dev <px4@purgatory.org>2013-02-24 11:42:34 -0800
commitf245d6b1a7edaa3b403007b704b4d54ecb7f3737 (patch)
tree57bf7266fa83e7327099763e402c2cd0d9f458e7 /apps/px4io/px4io.h
parent923a7cc505971ab6d04115d18108152f62d46283 (diff)
downloadpx4-firmware-f245d6b1a7edaa3b403007b704b4d54ecb7f3737.tar.gz
px4-firmware-f245d6b1a7edaa3b403007b704b4d54ecb7f3737.tar.bz2
px4-firmware-f245d6b1a7edaa3b403007b704b4d54ecb7f3737.zip
Use hrt_elapsed_time() in cases where we can't be sure the timestamp won't change under us.
Diffstat (limited to 'apps/px4io/px4io.h')
-rw-r--r--apps/px4io/px4io.h4
1 files changed, 2 insertions, 2 deletions
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;
};