mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/xbee: use named UART return values
This commit is contained in:
parent
2eebf36eb2
commit
52fdf4c886
@ -530,7 +530,7 @@ int xbee_init(xbee_t *dev, const xbee_params_t *params)
|
||||
dev->resp_limit = 1; /* needs to be greater then 0 initially */
|
||||
dev->rx_count = 0;
|
||||
/* initialize UART and GPIO pins */
|
||||
if (uart_init(params->uart, params->baudrate, _rx_cb, dev) < 0) {
|
||||
if (uart_init(params->uart, params->baudrate, _rx_cb, dev) != UART_OK) {
|
||||
DEBUG("xbee: Error initializing UART\n");
|
||||
return -ENXIO;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user