Added better error handling to linuxradiodrv transmit()

This commit is contained in:
Vladimir Pouzanov 2014-01-25 17:13:15 +00:00 committed by Vladimir Pouzanov
parent 8a068f8512
commit beef4f5d5d

View file

@ -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;