diff options
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/serial.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/os/hal/src/serial.c b/os/hal/src/serial.c index 49355ec33..9b5219fca 100644 --- a/os/hal/src/serial.c +++ b/os/hal/src/serial.c @@ -43,7 +43,7 @@ /*
* Interface implementation, the following functions just invoke the equivalent
- * queue-level function or macro. + * queue-level function or macro.
*/
static size_t writes(void *ip, const uint8_t *bp, size_t n) {
@@ -97,7 +97,7 @@ static const struct SerialDriverVMT vmt = { /*===========================================================================*/
/**
- * @brief Serial Driver initialization. + * @brief Serial Driver initialization.
*/
void sdInit(void) {
@@ -212,10 +212,11 @@ void sdIncomingDataI(SerialDriver *sdp, uint8_t b) { * the interrupt source when this happens).
*/
msg_t sdRequestDataI(SerialDriver *sdp) {
+ msg_t b;
chDbgCheck(sdp != NULL, "sdRequestDataI");
- msg_t b = chOQGetI(&sdp->oqueue);
+ b = chOQGetI(&sdp->oqueue);
if (b < Q_OK)
chEvtBroadcastI(&sdp->oevent);
return b;
|