mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-01 03:33:05 +00:00
Added better error handling to linuxradiodrv transmit()
This commit is contained in:
parent
8a068f8512
commit
beef4f5d5d
@ -89,6 +89,7 @@ transmit(unsigned short transmit_len)
|
||||
sent = send(sockfd, sockbuf, buflen, 0);
|
||||
if (sent < 0) {
|
||||
perror("linuxradio send()");
|
||||
return RADIO_TX_ERR;
|
||||
}
|
||||
buflen = 0;
|
||||
return RADIO_TX_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user