mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-24 13:21:23 +01:00
more ifdefs
This commit is contained in:
parent
9b04e7dfd6
commit
22d4fcf3b8
@ -71,8 +71,14 @@ DCCEXParser serialParser;
|
||||
|
||||
// Try monitoring the memory
|
||||
#include "freeMemory.h"
|
||||
//int minMemory=32767;
|
||||
// TODO: this should be automated instead of ifdef
|
||||
#if defined(ARDUINO_AVR_MEGA2560)
|
||||
int minMemory=32767;
|
||||
#elif defined(ARDUINO_AVR_UNO)
|
||||
int minMemory=2048;
|
||||
#else
|
||||
#error CANNOT COMPILE - Unkown board, can not determine amount of RAM available.
|
||||
#endif
|
||||
|
||||
void setup() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user