fix minor compile errors

This commit is contained in:
optixx 2009-09-17 20:46:00 +02:00 committed by Jannis (jix) Harder
parent 0295c8c385
commit c6b9c57e6d
2 changed files with 6 additions and 5 deletions

View File

@ -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
#endif

View File

@ -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
}