void fbPrintf(const char* format, ...) { char buffer[1000]; buffer[0] = '\0'; va_list args; va_start(args, format); vsprintf(buffer, format, args); va_end(args); framebuffer_print(buffer); }
void bufferPrint(const char* toBuffer) { if(UartHasInit) uartPrint(toBuffer); if(FramebufferHasInit) framebuffer_print(toBuffer); int len = strlen(toBuffer); addToBuffer(toBuffer, len); }
void fbPrintf(const char* format, ...) { static char buffer[1000]; EnterCriticalSection(); buffer[0] = '\0'; va_list args; va_start(args, format); vsprintf(buffer, format, args); va_end(args); framebuffer_print(buffer); LeaveCriticalSection(); }
void bufferPrint(const char* toBuffer) { if(UartHasInit) uartPrint(toBuffer); if(FramebufferHasInit) framebuffer_print(toBuffer); int len = strlen(toBuffer); addToBuffer(toBuffer, len); if(acm_is_ready) acm_buffer_notify(); }