install and use a global audioLogger instead of Serial (#198)
* use of global audioLogger-> instead of Serial. * default to silence * initialize logger in examples
This commit is contained in:
1 parent
598163dd59
commit
4fed6a230f
25 files changed
+74
-31
No files matched your search
@@ -30,7 +30,7 @@ AudioGeneratorMP3a::AudioGeneratorMP3a()
|
||||
output = NULL;
|
||||
hMP3Decoder = MP3InitDecoder();
|
||||
if (!hMP3Decoder) {
|
||||
Serial.printf_P(PSTR("Out of memory error! hMP3Decoder==NULL\n"));
|
||||
audioLogger->printf_P(PSTR("Out of memory error! hMP3Decoder==NULL\n"));
|
||||
Serial.flush();
|
||||
}
|
||||
// For sanity's sake...
|
||||
|
||||
Reference in new issue
Block a user