Move strings to PROGMEM, save a few heap bytes

This commit is contained in:
Earle F. Philhower, III committed 2017-12-14 10:50:55 -08:00
1 parent ee7febe1ec
commit 8d401a4a39
7 files changed
+32 -35

No files matched your search

+4 -1
View File
@@ -29,7 +29,10 @@ AudioGeneratorMP3a::AudioGeneratorMP3a()
file = NULL;
output = NULL;
hMP3Decoder = MP3InitDecoder();
if (!hMP3Decoder) { Serial.println("Out of memory error! hMP3Decoder==NULL"); Serial.flush(); }
if (!hMP3Decoder) {
Serial.printf_P(PSTR("Out of memory error! hMP3Decoder==NULL\n"));
Serial.flush();
}
// For sanity's sake...
memset(buff, 0, sizeof(buff));
memset(outSample, 0, sizeof(outSample));