1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

Switched to non-blocking I/O on radio port, which should prevent watchdog restarts when the radio link backs up.

This commit is contained in:
Brian Webb 2013-03-09 16:44:26 +00:00
parent 27c87e4b89
commit 7db7ab0e45

View File

@ -363,7 +363,7 @@ static int32_t RadioSendHandler(uint8_t *buf, int32_t length)
uint32_t outputPort = PIOS_COM_RADIO;
// Don't send any data unless the radio port is available.
if(outputPort && PIOS_COM_Available(outputPort)) {
return PIOS_COM_SendBuffer(outputPort, buf, length);
return PIOS_COM_SendBufferNonBlocking(outputPort, buf, length);
} else {
// For some reason, if this function returns failure, it prevents saving settings.
return length;