Update to simplfy code a bit, and bypass changes if not compiled in.

still to resolve:
targets/sky9x/adc_driver.cpp:42:61: warning: character constant too long for its type [enabled by default]
This commit is contained in:
rob@marotori.com
2013-09-20 14:50:03 +00:00
parent c163e2513b
commit 05e46242b0
2 changed files with 5 additions and 26 deletions
+5 -1
View File
@@ -37,8 +37,12 @@
#include "../opentx.h"
volatile uint16_t Analog_values[NUMBER_ANALOG];
const char ana_direction[NUMBER_ANALOG] = {'STICK_AIL_DIR', 'STICK_RUD_DIR', 0, 'STICK_ELE_DIR' ,0 , 'STICK_THR_DIR',0};
#if defined(STICK_RUD_REV) || defined(STICK_AIL_REV) || defined(STICK_ELE_REV) || defined(STICK_THR_REV)
const char ana_direction[NUMBER_ANALOG] = {'STICK_AIL_REV', 'STICK_RUD_REV', 0, 'STICK_ELE_REV' ,0 , 'STICK_THR_REV',0};
#else
const char ana_direction[NUMBER_ANALOG] = {0, 0, 0, 0 ,0 ,0 ,0};
#endif
// Settings for mode register ADC_MR