You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In arduino_functions.h there is the following code:
#if (defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)) && !defined(MAX_RECORDINGS)
#define MAX_RECORDINGS 400 //In combination with Homeduino maximum 490*2Byte are possible. Higher values block the arduino
#endif
#if (defined(__AVR_ATmega32U4__) || defined(TEENSY20) || defined(__AVR_ATmega1280__) || defined(__AVR_ATmega1281__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega2561__)) && !defined(MAX_RECORDINGS)
#define MAX_RECORDINGS 512 //on the bigger arduino we have enough SRAM
#endif
#if !defined(MAX_RECORDINGS)
#define MAX_RECORDINGS 255 // fallback for undefined Processor.
#endif
To get this ocde working on ESP I have changed the the line #define MAX_RECORDINGS 255 into #define MAX_RECORDINGS 400
Would be nice if we could make an ESP detection. I was thinking to put ESP.getChipId() in there, but that would'nt compile at all when the board is an Arduino.
Any thoughts about this? Just set the MAX_RECORDINGS higher for undefined or try to recognize an ESP so this could is easily switched between Arduino and ESP ?
The text was updated successfully, but these errors were encountered:
In arduino_functions.h there is the following code:
To get this ocde working on ESP I have changed the the line
#define MAX_RECORDINGS 255
into#define MAX_RECORDINGS 400
Would be nice if we could make an ESP detection. I was thinking to put ESP.getChipId() in there, but that would'nt compile at all when the board is an Arduino.
Any thoughts about this? Just set the MAX_RECORDINGS higher for undefined or try to recognize an ESP so this could is easily switched between Arduino and ESP ?
The text was updated successfully, but these errors were encountered: