diff options
Diffstat (limited to 'os/hal/src/hal_serial.c')
-rw-r--r-- | os/hal/src/hal_serial.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/os/hal/src/hal_serial.c b/os/hal/src/hal_serial.c index ee2b9ad55..734316877 100644 --- a/os/hal/src/hal_serial.c +++ b/os/hal/src/hal_serial.c @@ -100,13 +100,16 @@ static msg_t _ctl(void *ip, unsigned int operation, void *arg) { case CHN_CTL_NOP:
osalDbgCheck(arg == NULL);
break;
+ case CHN_CTL_INVALID:
+ osalDbgAssert(false, "invalid CTL operation");
+ break;
default:
#if defined(SD_LLD_IMPLEMENTS_CTL)
+ /* Delegating to the LLD if supported.*/
return sd_lld_control(sdp, operation, arg);
-#endif
- case CHN_CTL_INVALID:
- osalDbgAssert(false, "invalid CTL operation");
+#else
break;
+#endif
}
return MSG_OK;
}
|