From 1f21256f6a1429e3ca259326a7dd9ad5d65a52b8 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 31 Dec 2017 12:19:54 +0100 Subject: [PATCH] IO safety switch: Code style --- src/modules/px4iofirmware/safety.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/modules/px4iofirmware/safety.c b/src/modules/px4iofirmware/safety.c index 34f44b5abf..803eaaa8cb 100644 --- a/src/modules/px4iofirmware/safety.c +++ b/src/modules/px4iofirmware/safety.c @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2012, 2013 PX4 Development Team. All rights reserved. + * Copyright (c) 2012-2017 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -34,6 +34,8 @@ /** * @file safety.c * Safety button logic. + * + * @author Lorenz Meier */ #include @@ -56,11 +58,11 @@ static unsigned counter = 0; /* * Define the various LED flash sequences for each system state. */ -#define LED_PATTERN_FMU_OK_TO_ARM 0x0003 /**< slow blinking */ -#define LED_PATTERN_FMU_REFUSE_TO_ARM 0x5555 /**< fast blinking */ -#define LED_PATTERN_IO_ARMED 0x5050 /**< long off, then double blink */ -#define LED_PATTERN_FMU_ARMED 0x5500 /**< long off, then quad blink */ -#define LED_PATTERN_IO_FMU_ARMED 0xffff /**< constantly on */ +#define LED_PATTERN_FMU_OK_TO_ARM 0x0003 /**< slow blinking */ +#define LED_PATTERN_FMU_REFUSE_TO_ARM 0x5555 /**< fast blinking */ +#define LED_PATTERN_IO_ARMED 0x5050 /**< long off, then double blink */ +#define LED_PATTERN_FMU_ARMED 0x5500 /**< long off, then quad blink */ +#define LED_PATTERN_IO_FMU_ARMED 0xffff /**< constantly on */ static unsigned blink_counter = 0;