Fix enclose printf() in #ifdef WEBUI_LOG

This commit is contained in:
fibodevy 2023-09-27 22:00:51 +02:00
parent 6a634cc680
commit 9ff92268fc
No known key found for this signature in database
GPG Key ID: 61C28E0DE2AADF2D

View File

@ -1463,8 +1463,10 @@ void webui_wait(void) {
// is running. Otherwise the mutex condition
// signal will never come
if(!_webui_core.ui) {
printf("[Loop] webui_wait() -> No window is found. Stop.\n");
#ifdef WEBUI_LOG
printf("[Loop] webui_wait() -> No window is found. Stop.\n");
#endif
_webui_clean();
return;
}