lua unit tests can print now

This commit is contained in:
Andrey 2022-08-26 00:04:17 -04:00
parent 055184e1ec
commit d7b213f213
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@
static int lua_efi_print(lua_State* l) {
auto msg = luaL_checkstring(l, 1);
// we have somewhat similar debug code at serial_can.cpp
#if EFI_UNIT_TEST
printf("[LUA] %s\n", msg);
#endif
efiPrintf("LUA: %s", msg);
return 0;