1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

Fix undefined reference to putchar

This commit is contained in:
Ivan Grokhotkov 2016-02-14 22:16:46 +03:00
parent 1fc8918d76
commit 4c75793508

View File

@ -44,6 +44,13 @@ int ICACHE_RAM_ATTR puts(const char * str) {
return ets_printf("%s", str);
}
// newlib has 'putchar' defined to a big scary construct
#undef putchar
int ICACHE_RAM_ATTR putchar(int c) {
return ets_putc(c);
}
int ICACHE_RAM_ATTR printf(const char* format, ...) {
int ret;
va_list arglist;