Skip to content

Commit

Permalink
Fix -1 assigned to uint8_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Oct 23, 2023
1 parent fe51c36 commit dc04d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/PeriphDrivers/Source/UART/uart_reva.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ unsigned int MXC_UART_RevA_WriteTXFIFODMA(mxc_uart_reva_regs_t *uart, mxc_dma_re
mxc_uart_dma_complete_cb_t callback,
mxc_dma_config_t config)
{
uint8_t channel = -1;
int channel = -1;
mxc_dma_srcdst_t srcdst;

int uart_num = MXC_UART_GET_IDX((mxc_uart_regs_t *)uart);
Expand Down

0 comments on commit dc04d78

Please sign in to comment.