optionschecker

This commit is contained in:
e2002
2022-11-30 18:09:54 +03:00
parent 144f80f033
commit f7c8aaa965
3 changed files with 25 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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();