Verified Commit e1a7684a authored by Rahix's avatar Rahix

fix(cdcacm): Disable before printing error

Otherwise Epicardium attempts to print the error to cdcacm again,
leading to an endless recursion.
Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 4c74f061
......@@ -207,8 +207,8 @@ void cdcacm_write(uint8_t *data, int len)
if (acm_present() && !lockup_disable) {
int ret = acm_write(data, len);
if (ret < 0) {
LOG_ERR("cdcacm", "fifo lockup detected");
lockup_disable = 1;
LOG_ERR("cdcacm", "fifo lockup detected");
} else if (ret != len) {
LOG_WARN(
"cdcacm", "write length mismatch, got %d", ret
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment