Skip to content

Commit 8430a09

Browse files
committed
Adapt MockUART.cpp
1 parent 2cf76ba commit 8430a09

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/host/common/MockUART.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -407,26 +407,29 @@ uart_uninit(uart_t* uart)
407407
free(uart);
408408
}
409409

410-
void
410+
bool
411411
uart_swap(uart_t* uart, int tx_pin)
412412
{
413413
(void) uart;
414414
(void) tx_pin;
415+
return true;
415416
}
416417

417-
void
418+
bool
418419
uart_set_tx(uart_t* uart, int tx_pin)
419420
{
420421
(void) uart;
421422
(void) tx_pin;
423+
return true;
422424
}
423425

424-
void
426+
bool
425427
uart_set_pins(uart_t* uart, int tx, int rx)
426428
{
427429
(void) uart;
428430
(void) tx;
429431
(void) rx;
432+
return true;
430433
}
431434

432435
bool

0 commit comments

Comments
 (0)