aboutsummaryrefslogtreecommitdiffstats
path: root/os/various
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-05 11:46:30 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-05 11:46:30 +0000
commitfae4f0b084913bdfd6abd4791e4a4176ec065c44 (patch)
treeeeff351501e33add835424f698be05ebd41afe0d /os/various
parent32257914a5bdfd3b26ca91cf3a8e7e65e186c193 (diff)
downloadChibiOS-fae4f0b084913bdfd6abd4791e4a4176ec065c44.tar.gz
ChibiOS-fae4f0b084913bdfd6abd4791e4a4176ec065c44.tar.bz2
ChibiOS-fae4f0b084913bdfd6abd4791e4a4176ec065c44.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6665 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various')
-rw-r--r--os/various/memstreams.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/various/memstreams.c b/os/various/memstreams.c
index 11dd5b8ac..f7ba8b813 100644
--- a/os/various/memstreams.c
+++ b/os/various/memstreams.c
@@ -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;