uartSendFullTimeout wrong transmitted bytes Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
wurstnase
Posts: 121
Joined: Tue Oct 17, 2017 2:24 pm
Has thanked: 43 times
Been thanked: 30 times
Contact:

uartSendFullTimeout wrong transmitted bytes  Topic is solved

Postby wurstnase » Fri Nov 08, 2019 11:04 am

While uartSendTimeout is correct:

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
\o/ Nico

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: uartSendFullTimeout wrong transmitted bytes

Postby Giovanni » Sat Nov 09, 2019 11:33 am

Fixed as bug #1057.

thanks,
Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: Bing [Bot] and 12 guests