mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Fix undefined reference to putchar
This commit is contained in:
parent
1fc8918d76
commit
4c75793508
@ -44,6 +44,13 @@ int ICACHE_RAM_ATTR puts(const char * str) {
|
|||||||
return ets_printf("%s", 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 ICACHE_RAM_ATTR printf(const char* format, ...) {
|
||||||
int ret;
|
int ret;
|
||||||
va_list arglist;
|
va_list arglist;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user