Commit 7386f342 authored by Arnim Läuger's avatar Arnim Läuger Committed by Johny Mattsson
Browse files

ESP32: Use fwrite() instead of printf() for printing strings from Lua. (#1919)

* use fwrite() instead of printf() for printing strings from Lua

Fixes #1914.
parent 8ee61c51
...@@ -331,7 +331,7 @@ extern int readline4lua(const char *prompt, char *buffer, int length); ...@@ -331,7 +331,7 @@ extern int readline4lua(const char *prompt, char *buffer, int length);
** avoids including 'stdio.h' everywhere.) ** avoids including 'stdio.h' everywhere.)
*/ */
#if !defined(LUA_USE_STDIO) #if !defined(LUA_USE_STDIO)
#define luai_writestring(s, l) printf(s) #define luai_writestring(s, l) fwrite(s, 1, l, stdout)
#define luai_writeline() puts("") #define luai_writeline() puts("")
#endif // defined(LUA_USE_STDIO) #endif // defined(LUA_USE_STDIO)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment