Fix sdk_uart_rx_one_char implementation, move into sdk_compat.c

This commit is contained in:
Angus Gratton 2015-10-06 23:48:28 +11:00
parent be3968abf0
commit 0c6a8881a4
2 changed files with 17 additions and 13 deletions

View file

@ -363,15 +363,6 @@ static void dump_excinfo(void) {
sdk_system_rtc_mem_write(0, excinfo, 32);
}
// .irom0.text+0x368
int sdk_uart_rx_one_char(char *buf) {
/* This functions returns 1 instead of -1 on error,
but is otherwise the same. Unsure if anyone checks the
result for a specific value though.
*/
return uart_getc_nowait(0) ? 1 : 0;
}
// .irom0.text+0x398
void sdk_wdt_init(void) {
WDT.CTRL &= ~WDT_CTRL_ENABLE;