diff --git a/yoRadio/src/core/options.h b/yoRadio/src/core/options.h index a9e1a6b..8911e80 100644 --- a/yoRadio/src/core/options.h +++ b/yoRadio/src/core/options.h @@ -1,7 +1,7 @@ #ifndef options_h #define options_h -#define VERSION "0.8.112" +#define VERSION "0.8.115" /******************************************************* DO NOT EDIT THIS FILE. @@ -390,4 +390,6 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti #define L10N_LANGUAGE EN #endif + + #endif diff --git a/yoRadio/src/core/optionschecker.h b/yoRadio/src/core/optionschecker.h new file mode 100644 index 0000000..82086cc --- /dev/null +++ b/yoRadio/src/core/optionschecker.h @@ -0,0 +1,21 @@ +#ifndef optionschecker_h +#define optionschecker_h + +#if LED_BUILTIN==TFT_RST +# error LED_BUILTIN IS THE SAME AS TFT_RST. Check it in myoptions.h +#endif + +#if LED_BUILTIN==VS1053_RST +# error LED_BUILTIN IS THE SAME AS VS1053_RST. Check it in myoptions.h +#endif + +#if (I2S_DOUT!=255) && (VS1053_CS!=255) +# error YOU MUST CHOOSE BETWEEN I2S DAC AND VS1053 BY DISABLING THE SECOND MODULE IN THE myoptions.h +#endif + + + + +#endif + + diff --git a/yoRadio/yoRadio.ino b/yoRadio/yoRadio.ino index 81f4a22..ba7e4c6 100644 --- a/yoRadio/yoRadio.ino +++ b/yoRadio/yoRadio.ino @@ -25,6 +25,7 @@ #include "src/core/netserver.h" #include "src/core/controls.h" #include "src/core/mqtt.h" +#include "src/core/optionschecker.h" extern __attribute__((weak)) void yoradio_on_setup();