fix minor compile errors
This commit is contained in:
parent
0295c8c385
commit
c6b9c57e6d
@ -59,10 +59,11 @@ void debug_P(int level, PGM_P format, ...) {
|
|||||||
va_list args;
|
va_list args;
|
||||||
if (!(debug_level & level))
|
if (!(debug_level & level))
|
||||||
return;
|
return;
|
||||||
strlcpy_P(buffer_debug,format,FORMAT_BUFFER_LEN);
|
strlcpy_P((char*)buffer_debug,format,FORMAT_BUFFER_LEN);
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
vprintf(buffer_debug, args);
|
vprintf((char*)buffer_debug, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -63,10 +63,10 @@ void info_P(PGM_P format, ...) {
|
|||||||
#ifdef NO_INFO
|
#ifdef NO_INFO
|
||||||
|
|
||||||
#else
|
#else
|
||||||
strlcpy_P(buffer_info,format,FORMAT_BUFFER_LEN);
|
strlcpy_P((char*)buffer_info,format,FORMAT_BUFFER_LEN);
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
vprintf(buffer_info, args);
|
vprintf((char*)buffer_info, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user