From 45fa6eadd09e53cba3988f8e1ef4a98d57fa17f1 Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 10 Jul 2012 13:57:44 +0000 Subject: [PATCH] Delay and Duration added to Custom Switches for ARM (only added in EEPROM to avoid another conversion) --- src/myeeprom.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/myeeprom.h b/src/myeeprom.h index 2f44af76a..b25e6ca1e 100644 --- a/src/myeeprom.h +++ b/src/myeeprom.h @@ -289,11 +289,21 @@ PACK(typedef struct t_MixData { }) MixData; #endif +#if defined(PCBARM) +PACK(typedef struct t_CustomSwData { // Custom Switches data + int8_t v1; //input + int8_t v2; //offset + uint8_t func; + uint8_t delay; + uint8_t duration; +}) CustomSwData; +#else PACK(typedef struct t_CustomSwData { // Custom Switches data int8_t v1; //input int8_t v2; //offset uint8_t func; }) CustomSwData; +#endif enum Functions { FUNC_SAFETY_CH1,