Skip to content
Snippets Groups Projects
Verified Commit e1a7684a authored by rahix's avatar rahix
Browse files

fix(cdcacm): Disable before printing error


Otherwise Epicardium attempts to print the error to cdcacm again,
leading to an endless recursion.

Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 4c74f061
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment