Skip to content

Commit

Permalink
move defines for board types
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Dec 25, 2022
1 parent b2f001e commit ffcf98b
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/default_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

// GENERAL SETTINGS

#ifndef EMSESP_STANDALONE
#define EMSESP_DEFAULT_LOCALE EMSESP_LOCALE_EN // English
#else
// this is for debugging different languages in standalone version
// #define EMSESP_DEFAULT_LOCALE EMSESP_LOCALE_DE // German
#ifndef EMSESP_DEFAULT_LOCALE
#define EMSESP_DEFAULT_LOCALE EMSESP_LOCALE_EN // English
#endif

#ifndef EMSESP_DEFAULT_VERSION
#define EMSESP_DEFAULT_VERSION ""
#endif

#ifndef EMSESP_DEFAULT_TX_MODE
#define EMSESP_DEFAULT_TX_MODE 1 // EMS1.0
#endif
Expand Down Expand Up @@ -228,5 +228,14 @@ enum {

};

#if CONFIG_IDF_TARGET_ESP32C3
#define EMSESP_PLATFORM "ESP32-C3";
#elif CONFIG_IDF_TARGET_ESP32S2
#define EMSESP_PLATFORM "ESP32-S2";
#elif CONFIG_IDF_TARGET_ESP32 || EMSESP_STANDALONE
#define EMSESP_PLATFORM "ESP32";
#else
#error Target CONFIG_IDF_TARGET is not supported
#endif

#endif

0 comments on commit ffcf98b

Please sign in to comment.