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:
parent
1fc8918d76
commit
4c75793508
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user