1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

Config/example loading

This commit is contained in:
Asbelos 2021-02-07 10:27:46 +00:00
parent 7bffe0bd1d
commit f687625bfa
6 changed files with 10 additions and 8 deletions

View File

@ -19,6 +19,7 @@
#if __has_include ( "config.h")
#include "config.h"
#else
#warning config.h not found. Using defaults from config.example.h
#include "config.example.h"
#endif

View File

@ -18,8 +18,7 @@
*
*/
#include "config.h"
#include "defines.h" // This should be changed to DCCEX.h when possible
#include "defines.h"
#if ETHERNET_ON == true
#include "EthernetInterface.h"
#include "DIAG.h"

View File

@ -22,7 +22,12 @@
#ifndef EthernetInterface_h
#define EthernetInterface_h
#if __has_include ( "config.h")
#include "config.h"
#else
#warning config.h not found. Using defaults from config.example.h
#include "config.example.h"
#endif
#include "DCCEXParser.h"
#include <Arduino.h>
#include <avr/pgmspace.h>

View File

@ -27,7 +27,6 @@
#ifndef LCD_Implementation_h
#define LCD_Implementation_h
#include "config.h"
#include <Wire.h>
#include "LCDDisplay.h"

View File

@ -20,7 +20,6 @@
#ifndef WifiInterface_h
#define WifiInterface_h
#include "FSH.h"
#include "config.h"
#include "DCCEXParser.h"
#include <Arduino.h>
#include <avr/pgmspace.h>

View File

@ -1,10 +1,9 @@
/**********************************************************************
Config.h
COPYRIGHT (c) 2013-2016 Gregg E. Berman
config.h
COPYRIGHT (c) 2020 Fred Decker
The configuration file for DCC++ EX Command Station
The configuration file for DCC-EX Command Station
**********************************************************************/