diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-01-23 23:10:05 +0100 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-01-23 23:10:05 +0100 |
commit | b3d98e4a19662af44432a0436a1b5de7fb9649c9 (patch) | |
tree | 3a0c6de54a6d177bfd165d983f8a98d42b8b8926 /src/modules/px4iofirmware/safety.c | |
parent | 55f845888bece8aaa49ebc2b5e25663b6c8f3f3c (diff) | |
parent | 4524fe3e4888d569f855d1e7a82c8d5116636a0a (diff) | |
download | px4-firmware-b3d98e4a19662af44432a0436a1b5de7fb9649c9.tar.gz px4-firmware-b3d98e4a19662af44432a0436a1b5de7fb9649c9.tar.bz2 px4-firmware-b3d98e4a19662af44432a0436a1b5de7fb9649c9.zip |
Merge branch 'master' into beta
Diffstat (limited to 'src/modules/px4iofirmware/safety.c')
-rw-r--r-- | src/modules/px4iofirmware/safety.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/px4iofirmware/safety.c b/src/modules/px4iofirmware/safety.c index 83bd3026e..ff2e4af6e 100644 --- a/src/modules/px4iofirmware/safety.c +++ b/src/modules/px4iofirmware/safety.c @@ -83,7 +83,11 @@ safety_init(void) { /* arrange for the button handler to be called at 10Hz */ hrt_call_every(&arming_call, 1000, 100000, safety_check_button, NULL); +} +void +failsafe_led_init(void) +{ /* arrange for the failsafe blinker to be called at 8Hz */ hrt_call_every(&failsafe_call, 1000, 125000, failsafe_blink, NULL); } @@ -164,8 +168,8 @@ failsafe_blink(void *arg) /* indicate that a serious initialisation error occured */ if (!(r_status_flags & PX4IO_P_STATUS_FLAGS_INIT_OK)) { LED_AMBER(true); - return; - } + return; + } static bool failsafe = false; |