git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6665 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2014-02-05 11:46:30 +00:00
parent 32257914a5
commit fae4f0b084
1 changed files with 3 additions and 3 deletions

View File

@ -67,10 +67,10 @@ static msg_t put(void *ip, uint8_t b) {
MemoryStream *msp = ip;
if (msp->size - msp->eos <= 0)
return RDY_RESET;
return MSG_RESET;
*(msp->buffer + msp->eos) = b;
msp->eos += 1;
return RDY_OK;
return MSG_OK;
}
static msg_t get(void *ip) {
@ -78,7 +78,7 @@ static msg_t get(void *ip) {
MemoryStream *msp = ip;
if (msp->eos - msp->offset <= 0)
return RDY_RESET;
return MSG_RESET;
b = *(msp->buffer + msp->offset);
msp->offset += 1;
return b;