Fix ESP32 compilation, add SPI class RAM wrapper (#254)
Seems like VSCODE and others try and compile all files in a directory, even if they aren't used. Because the spiram-fast had ESP8266-only registers, it caused an error when attempting to build anything for the ESP32. Update by writing a new SPI class based version of the spiram-fast class (tested on the ESP8266) which uses the SPI wrapper class. Fixes #253
This commit is contained in:
1 parent
7df1e005e5
commit
5b8ba1681c
3 files changed
+219
-90
No files matched your search
@@ -55,13 +55,11 @@ class AudioFileSourceSPIRAMBuffer : public AudioFileSource
|
||||
size_t ramSize;
|
||||
size_t writePtr;
|
||||
size_t readPtr;
|
||||
bool filled;
|
||||
|
||||
bool filled;
|
||||
|
||||
#ifdef FAKERAM
|
||||
char fakeRAM[2048];
|
||||
char fakeRAM[2048];
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user