Skip to content

Commit

Permalink
sys/uart_stdio: adapted to cb type change
Browse files Browse the repository at this point in the history
  • Loading branch information
haukepetersen committed Mar 15, 2016
1 parent 2d2126e commit 4b67fcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sys/include/uart_stdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int uart_stdio_write(const char* buffer, int len);
* @param[in] arg (unused)
* @param[in] data character that has been received
*/
void uart_stdio_rx_cb(void *arg, char data);
void uart_stdio_rx_cb(void *arg, uint8_t data);

#ifdef __cplusplus
}
Expand Down
4 changes: 2 additions & 2 deletions sys/uart_stdio/uart_stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ static tsrb_t _rx_buf = TSRB_INIT(_rx_buf_mem);
/**
* @brief Receive a new character from the UART and put it into the receive buffer
*/
void uart_stdio_rx_cb(void *arg, char data)
void uart_stdio_rx_cb(void *arg, uint8_t data)
{
(void)arg;
tsrb_add_one(&_rx_buf, data);
tsrb_add_one(&_rx_buf, (uint8_t)data);
mutex_unlock(&_rx_mutex);
}

Expand Down

0 comments on commit 4b67fcc

Please sign in to comment.