Skip to content

Commit 7efe49e

Browse files
committed
Fixed unused variable.
1 parent a485e8e commit 7efe49e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/host/common/MockUART.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ uart1_write_char(char c)
428428
void
429429
uart_set_debug(int uart_nr)
430430
{
431+
(void)uart_nr;
432+
/*
433+
TODO after there are debug log functions in the host emu
434+
431435
s_uart_debug_nr = uart_nr;
432436
void (*func)(char) = NULL;
433437
switch(s_uart_debug_nr)
@@ -443,6 +447,14 @@ uart_set_debug(int uart_nr)
443447
func = &uart_ignore_char;
444448
break;
445449
}
450+
451+
if (uart_nr == UART0 || uart_nr == UART1) {
452+
system_set_os_print(1);
453+
} else {
454+
system_set_os_print(0);
455+
}
456+
ets_install_putc1((void *) func);
457+
*/
446458
}
447459

448460
int

0 commit comments

Comments
 (0)