We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a485e8e commit 7efe49eCopy full SHA for 7efe49e
tests/host/common/MockUART.cpp
@@ -428,6 +428,10 @@ uart1_write_char(char c)
428
void
429
uart_set_debug(int uart_nr)
430
{
431
+ (void)uart_nr;
432
+/*
433
+ TODO after there are debug log functions in the host emu
434
+
435
s_uart_debug_nr = uart_nr;
436
void (*func)(char) = NULL;
437
switch(s_uart_debug_nr)
@@ -443,6 +447,14 @@ uart_set_debug(int uart_nr)
443
447
func = &uart_ignore_char;
444
448
break;
445
449
}
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
+*/
446
458
459
460
int
0 commit comments