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