summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhujiale <[email protected]>2024-09-12 13:23:38 +0800
committerRbb666 <[email protected]>2024-09-24 09:56:30 +0800
commitd468b936574560bf409033a498ed4b68ec845379 (patch)
tree8c712629ecc4803731b122f4de45f575dd44e481
parent244cf61af6a0549d2a197af05183a7e902207598 (diff)
smp
-rw-r--r--components/smp/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/smp/smp.c b/components/smp/smp.c
index 273b7ce22d..cb2f0433b7 100644
--- a/components/smp/smp.c
+++ b/components/smp/smp.c
@@ -26,7 +26,7 @@ rt_err_t smp_call_handler(struct smp_event *event)
break;
default:
LOG_E("error event id\n");
- return RT_ERROR;
+ return -RT_ERROR;
}
return RT_EOK;
}