[Horus] Compilation fix
This commit is contained in:
@@ -79,6 +79,8 @@
|
|||||||
#define MIXERS_MONITOR
|
#define MIXERS_MONITOR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define LANGUAGE_PACKS_DEFINITION
|
||||||
|
|
||||||
#undef min
|
#undef min
|
||||||
#undef max
|
#undef max
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,9 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../opentx.h"
|
#define LANGUAGE_PACKS_DEFINITION
|
||||||
|
|
||||||
|
#include "opentx.h"
|
||||||
|
|
||||||
const pm_uchar sticks[] PROGMEM = {
|
const pm_uchar sticks[] PROGMEM = {
|
||||||
#include "sticks.lbm"
|
#include "sticks.lbm"
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LANGUAGE_PACKS_DEFINITION
|
||||||
|
|
||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
|
|
||||||
#define RADIO_SETUP_2ND_COLUMN 220
|
#define RADIO_SETUP_2ND_COLUMN 220
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ union ZoneOptionValue
|
|||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define OPTION_DEFAULT_VALUE(...)
|
#define OPTION_DEFAULT_VALUE(...)
|
||||||
#else
|
#else
|
||||||
#define OPTION_DEFAULT_VALUE(x) x
|
#define OPTION_DEFAULT_VALUE(...) __VA_ARGS__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct ZoneOption
|
struct ZoneOption
|
||||||
|
|||||||
@@ -18,7 +18,9 @@
|
|||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../opentx.h"
|
#define LANGUAGE_PACKS_DEFINITION
|
||||||
|
|
||||||
|
#include "opentx.h"
|
||||||
|
|
||||||
const pm_uchar sticks[] PROGMEM = {
|
const pm_uchar sticks[] PROGMEM = {
|
||||||
#include "sticks.lbm"
|
#include "sticks.lbm"
|
||||||
|
|||||||
+19
-25
@@ -704,14 +704,7 @@ extern const pm_char STR_CONFIRMRESET[];
|
|||||||
extern const pm_char STR_TOO_MANY_LUA_SCRIPTS[];
|
extern const pm_char STR_TOO_MANY_LUA_SCRIPTS[];
|
||||||
extern const pm_char STR_BLCOLOR[];
|
extern const pm_char STR_BLCOLOR[];
|
||||||
|
|
||||||
#if defined(VOICE) && defined(CPUARM)
|
#if defined(CPUARM) && defined(VOICE)
|
||||||
|
|
||||||
#if defined(SIMU)
|
|
||||||
#define LP_CONST
|
|
||||||
#else
|
|
||||||
#define LP_CONST const
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct LanguagePack {
|
struct LanguagePack {
|
||||||
const char * id;
|
const char * id;
|
||||||
const char * name;
|
const char * name;
|
||||||
@@ -722,19 +715,20 @@ extern const pm_char STR_BLCOLOR[];
|
|||||||
extern const LanguagePack * currentLanguagePack;
|
extern const LanguagePack * currentLanguagePack;
|
||||||
extern uint8_t currentLanguagePackIdx;
|
extern uint8_t currentLanguagePackIdx;
|
||||||
|
|
||||||
extern LP_CONST LanguagePack czLanguagePack;
|
extern const LanguagePack czLanguagePack;
|
||||||
extern LP_CONST LanguagePack enLanguagePack;
|
extern const LanguagePack enLanguagePack;
|
||||||
extern LP_CONST LanguagePack esLanguagePack;
|
extern const LanguagePack esLanguagePack;
|
||||||
extern LP_CONST LanguagePack frLanguagePack;
|
extern const LanguagePack frLanguagePack;
|
||||||
extern LP_CONST LanguagePack deLanguagePack;
|
extern const LanguagePack deLanguagePack;
|
||||||
extern LP_CONST LanguagePack itLanguagePack;
|
extern const LanguagePack itLanguagePack;
|
||||||
extern LP_CONST LanguagePack plLanguagePack;
|
extern const LanguagePack plLanguagePack;
|
||||||
extern LP_CONST LanguagePack ptLanguagePack;
|
extern const LanguagePack ptLanguagePack;
|
||||||
extern LP_CONST LanguagePack skLanguagePack;
|
extern const LanguagePack skLanguagePack;
|
||||||
extern LP_CONST LanguagePack seLanguagePack;
|
extern const LanguagePack seLanguagePack;
|
||||||
extern LP_CONST LanguagePack huLanguagePack;
|
extern const LanguagePack huLanguagePack;
|
||||||
|
extern const LanguagePack * const languagePacks[];
|
||||||
static const LanguagePack * LP_CONST languagePacks[] = {
|
#if defined(LANGUAGE_PACKS_DEFINITION)
|
||||||
|
const LanguagePack * const languagePacks[] = {
|
||||||
// alphabetical order
|
// alphabetical order
|
||||||
&czLanguagePack,
|
&czLanguagePack,
|
||||||
&deLanguagePack,
|
&deLanguagePack,
|
||||||
@@ -749,11 +743,11 @@ extern const pm_char STR_BLCOLOR[];
|
|||||||
&skLanguagePack,
|
&skLanguagePack,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
#if defined(SIMU)
|
#if defined(SIMU)
|
||||||
#define LANGUAGE_PACK_DECLARE(lng, name) LP_CONST LanguagePack lng ## LanguagePack = { #lng, name, lng ## _ ## playNumber, lng ## _ ## playDuration }
|
#define LANGUAGE_PACK_DECLARE(lng, name) const LanguagePack lng ## LanguagePack = { #lng, name, lng ## _ ## playNumber, lng ## _ ## playDuration }
|
||||||
#else
|
#else
|
||||||
#define LANGUAGE_PACK_DECLARE(lng, name) extern LP_CONST LanguagePack lng ## LanguagePack = { #lng, name, lng ## _ ## playNumber, lng ## _ ## playDuration }
|
#define LANGUAGE_PACK_DECLARE(lng, name) extern const LanguagePack lng ## LanguagePack = { #lng, name, lng ## _ ## playNumber, lng ## _ ## playDuration }
|
||||||
#endif
|
#endif
|
||||||
#define LANGUAGE_PACK_DECLARE_DEFAULT(lng, name) LANGUAGE_PACK_DECLARE(lng, name); const LanguagePack * currentLanguagePack = & lng ## LanguagePack; uint8_t currentLanguagePackIdx
|
#define LANGUAGE_PACK_DECLARE_DEFAULT(lng, name) LANGUAGE_PACK_DECLARE(lng, name); const LanguagePack * currentLanguagePack = & lng ## LanguagePack; uint8_t currentLanguagePackIdx
|
||||||
inline PLAY_FUNCTION(playNumber, getvalue_t number, uint8_t unit, uint8_t flags) { currentLanguagePack->playNumber(number, unit, flags, id); }
|
inline PLAY_FUNCTION(playNumber, getvalue_t number, uint8_t unit, uint8_t flags) { currentLanguagePack->playNumber(number, unit, flags, id); }
|
||||||
@@ -829,7 +823,7 @@ extern const pm_char STR_BLCOLOR[];
|
|||||||
extern const pm_char STR_SELECT_WIDGET[];
|
extern const pm_char STR_SELECT_WIDGET[];
|
||||||
extern const pm_char STR_REMOVE_WIDGET[];
|
extern const pm_char STR_REMOVE_WIDGET[];
|
||||||
extern const pm_char STR_WIDGET_SETTINGS[];
|
extern const pm_char STR_WIDGET_SETTINGS[];
|
||||||
extern const pm_char STR_REMOVE_SCREEN[];
|
extern const pm_char STR_REMOVE_SCREEN[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS)
|
#if defined(PCBTARANIS) || defined(PCBFLAMENCO) || defined(PCBHORUS)
|
||||||
|
|||||||
Reference in New Issue
Block a user