aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-01-12 12:57:16 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-01-12 12:57:16 +0000
commitad233747052d0c1484c509ac586230da37a2de6e (patch)
tree9543256106dcb9cd91527b0a66cf4f6ae12c7776 /os/hal/src
parentd7a0be7d7fd89d7fa3715705e4014547337d0eb9 (diff)
downloadChibiOS-ad233747052d0c1484c509ac586230da37a2de6e.tar.gz
ChibiOS-ad233747052d0c1484c509ac586230da37a2de6e.tar.bz2
ChibiOS-ad233747052d0c1484c509ac586230da37a2de6e.zip
Improved serial driver errors.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10038 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r--os/hal/src/hal_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/src/hal_serial.c b/os/hal/src/hal_serial.c
index 1e8a69f96..e5ee79a9e 100644
--- a/os/hal/src/hal_serial.c
+++ b/os/hal/src/hal_serial.c
@@ -218,7 +218,7 @@ void sdIncomingDataI(SerialDriver *sdp, uint8_t b) {
if (iqIsEmptyI(&sdp->iqueue))
chnAddFlagsI(sdp, CHN_INPUT_AVAILABLE);
if (iqPutI(&sdp->iqueue, b) < MSG_OK)
- chnAddFlagsI(sdp, SD_OVERRUN_ERROR);
+ chnAddFlagsI(sdp, SD_QUEUE_FULL_ERROR);
}
/**