Avoid assert on non-implemented SM write callback

The asserts might be used to intentionally stop the running process.
Further, it might be an annoyance if it happen unintentionally. Just
print an error message instead, and return to FlexRIC that nothing is to
be sent.
This commit is contained in:
Robert Schmidt
2024-11-25 11:02:13 +01:00
parent 68191088ab
commit 500f37d10e
5 changed files with 11 additions and 5 deletions
@@ -537,7 +537,7 @@ void read_kpm_setup_sm(void* e2ap)
sm_ag_if_ans_t write_ctrl_kpm_sm(void const* src)
{
assert(0 !=0 && "Not supported");
printf("write_ctrl callback for KPM SM: operation not supported\n");
(void)src;
sm_ag_if_ans_t ans = {0};
return ans;