git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1184 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
17a9b44ac4
commit
b32e78903d
|
@ -304,7 +304,7 @@ BufDescriptorEntry *EMACGetTransmitBuffer(void) {
|
||||||
if (!(cptr->w2 & W2_T_USED) ||
|
if (!(cptr->w2 & W2_T_USED) ||
|
||||||
(cptr->w2 & W2_T_LOCKED)) {
|
(cptr->w2 & W2_T_LOCKED)) {
|
||||||
chSysUnlock();
|
chSysUnlock();
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
cptr->w2 |= W2_T_LOCKED; /* Locks the buffer while copying.*/
|
cptr->w2 |= W2_T_LOCKED; /* Locks the buffer while copying.*/
|
||||||
if (++txptr >= &tent[EMAC_TRANSMIT_BUFFERS])
|
if (++txptr >= &tent[EMAC_TRANSMIT_BUFFERS])
|
||||||
|
|
Loading…
Reference in New Issue