Skip to content

Commit 5eee248

Browse files
jithu83Anas Nashif
authored andcommitted
tests: drivers: uart: fix variable type mismatches
These were flagged by icx build. Jira: ZEP-1864 Change-Id: I5b8fce64d9e20d768fabf02e2a799e9390e3679a Signed-off-by: Jithu Joseph <[email protected]> (cherry picked from commit fbde97d)
1 parent 09b1994 commit 5eee248

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/drivers/uart/uart_basic_api/src/test_uart_fifo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static const char *fifo_data = "This is a FIFO test.\r\n";
4343

4444
static void uart_fifo_callback(struct device *dev)
4545
{
46-
char recvData;
46+
uint8_t recvData;
4747

4848
/* Verify uart_irq_update() */
4949
uart_irq_update(dev);
@@ -104,7 +104,7 @@ static int test_fifo_fill(void)
104104
/* Verify uart_fifo_fill() */
105105
for (int i = 0; i < DATA_SIZE; i++) {
106106
data_transmitted = false;
107-
while (!uart_fifo_fill(uart_dev, &fifo_data[i], 1))
107+
while (!uart_fifo_fill(uart_dev, (uint8_t *) &fifo_data[i], 1))
108108
;
109109
while (data_transmitted == false)
110110
;

0 commit comments

Comments
 (0)