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

Add the F define to be on safe side if it is not present in the library core code

This commit is contained in:
Harald Barth 2021-01-23 21:52:10 +01:00
parent 21136ed5b1
commit 3313211c90

4
FSH.h
View File

@ -2,6 +2,10 @@
#define FSH_h #define FSH_h
#include <Arduino.h> #include <Arduino.h>
#ifdef ARDUINO_ARCH_MEGAAVR #ifdef ARDUINO_ARCH_MEGAAVR
#ifdef F
#undef F
#define F(str) (str)
#endif
typedef char FSH; typedef char FSH;
#define GETFLASH(addr) (*(const unsigned char *)(addr)) #define GETFLASH(addr) (*(const unsigned char *)(addr))
#define FLASH #define FLASH