From 95a39777f8709417b36c7c1ab43441d6b42e4f80 Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 25 Mar 2014 17:12:23 +0100 Subject: [PATCH] Compilation fix --- companion/src/simulation/simulatorimport.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/companion/src/simulation/simulatorimport.h b/companion/src/simulation/simulatorimport.h index 4890a6281..ab1f83c6d 100644 --- a/companion/src/simulation/simulatorimport.h +++ b/companion/src/simulation/simulatorimport.h @@ -14,6 +14,10 @@ * */ +#if !defined(NUM_LOGICAL_SWITCH) && defined(NUM_CSW) +#define NUM_LOGICAL_SWITCH NUM_CSW +#endif + #ifdef INIT_IMPORT #undef INIT_IMPORT #ifdef FRSKY @@ -49,7 +53,7 @@ if (inputs.rotenc) PIOB->PIO_PDSR &= ~0x40; else PIOB->PIO_PDSR |= 0x40; #undef GETVALUES_IMPORT memset(outputs.chans, 0, sizeof(outputs.chans)); memcpy(outputs.chans, g_chans512, sizeof(g_chans512)); -for (int i=0; i