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: 99
Joined: Tue Oct 17, 2017 2:24 pm
Has thanked: 37 times
Been thanked: 22 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: 12254
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 585 times
Been thanked: 500 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: No registered users and 2 guests