Fixed bug 3179783.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2735 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
eb3355b558
commit
f67eb2c108
|
@ -123,8 +123,10 @@ msg_t macWaitTransmitDescriptor(MACDriver *macp,
|
|||
(time > 0)) {
|
||||
chSysLock();
|
||||
systime_t now = chTimeNow();
|
||||
if ((msg = chSemWaitTimeoutS(&macp->md_tdsem, time)) == RDY_TIMEOUT)
|
||||
if ((msg = chSemWaitTimeoutS(&macp->md_tdsem, time)) == RDY_TIMEOUT) {
|
||||
chSysUnlock();
|
||||
break;
|
||||
}
|
||||
if (time != TIME_INFINITE)
|
||||
time -= (chTimeNow() - now);
|
||||
chSysUnlock();
|
||||
|
@ -173,8 +175,10 @@ msg_t macWaitReceiveDescriptor(MACDriver *macp,
|
|||
(time > 0)) {
|
||||
chSysLock();
|
||||
systime_t now = chTimeNow();
|
||||
if ((msg = chSemWaitTimeoutS(&macp->md_rdsem, time)) == RDY_TIMEOUT)
|
||||
if ((msg = chSemWaitTimeoutS(&macp->md_rdsem, time)) == RDY_TIMEOUT) {
|
||||
chSysUnlock();
|
||||
break;
|
||||
}
|
||||
if (time != TIME_INFINITE)
|
||||
time -= (chTimeNow() - now);
|
||||
chSysUnlock();
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
*****************************************************************************
|
||||
|
||||
*** 2.3.0 ***
|
||||
- FIX: Error in MAC driver (bug 3179783)(backported to 2.2.1).
|
||||
- FIX: Fixed wrong serial driver macros (bug 3173336)(backported to 2.2.1).
|
||||
- NEW: Added experimental generic USB driver, it will evolve in next
|
||||
releases.
|
||||
|
|
Loading…
Reference in New Issue