Added console message implementation for ESP8266. (#1398)

JerryScript-DCO-1.0-Signed-off-by: Slavey Karadzhov slaff@attachix.com
This commit is contained in:
slaff 2016-10-19 12:56:09 +02:00 committed by László Langó
parent 3ce48be152
commit 2ef89eafbf

View File

@ -18,6 +18,7 @@
#include <stdarg.h>
#include "jerry-core/jerry-port.h"
extern int ets_putc (int);
/**
* Provide console message implementation for the engine.
@ -28,8 +29,7 @@ jerry_port_console (const char *format, /**< format string */
{
va_list args;
va_start (args, format);
/* TODO, uncomment when vprint link is ok */
/* vfprintf (stdout, format, args); */
ets_vprintf (ets_putc, format, args);
va_end (args);
} /* jerry_port_console */