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…
Reference in a new issue