We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98def08 commit ecfe700Copy full SHA for ecfe700
src/VS1053Logger.h
@@ -21,7 +21,7 @@ class VS1053LoggerClass {
21
VS1053LogLevel_t logLevel = VS1053Warning;
22
23
/// start the logger
24
- bool begin(VS1053LogLevel_t l, Print &out) {
+ bool begin(Print &out, VS1053LogLevel_t l) {
25
p_out = &out;
26
logLevel = l;
27
return true;
@@ -31,7 +31,8 @@ class VS1053LoggerClass {
31
void log(VS1053LogLevel_t level, const char *fmt...) {
32
if (logLevel <= level) { // AUDIOKIT_LOG_LEVEL = Debug
33
char log_buffer[200];
34
- strcpy(log_buffer, VS1053_log_msg[level]);
+ strcpy(log_buffer,"VS1053 - ");
35
+ strcat(log_buffer, VS1053_log_msg[level]);
36
strcat(log_buffer, ": ");
37
va_list arg;
38
va_start(arg, fmt);
0 commit comments