Code: Select all
/* Waiting for result.*/
msg = osalThreadSuspendTimeoutS(&uartp->threadtx, timeout);
if (msg != MSG_OK) {
*np -= uartStopSendI(uartp);
}
uartSendFullTimeout is wrong:
Code: Select all
/* Waiting for result.*/
msg = osalThreadSuspendTimeoutS(&uartp->threadtx, timeout);
if (msg != MSG_OK) {
*np = uartStopSendI(uartp);
}
Take care of the missing "-=" for uartStopSendI