1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

extra catch for buggy compiler/preprocessor

This commit is contained in:
Harald Barth 2022-08-03 09:31:03 +02:00
parent 172dbfd444
commit fad504bc7f

View File

@ -18,6 +18,9 @@
#if __has_include ( "config.h")
#include "config.h"
#ifndef MOTOR_SHIELD_TYPE
#error Your config.h must include a MOTOR_SHIELD_TYPE definition. If you see this warning in spite not having a config.h, you have a buggy preprocessor and must copy config.example.h to config.h
#endif
#else
#warning config.h not found. Using defaults from config.example.h
#include "config.example.h"