Merge pull request #3774 from ErnestChen1/switch_default0727

[add] switch default clause
This commit is contained in:
Bernard Xiong 2020-08-03 21:14:09 +08:00 committed by GitHub
commit 65d4e732cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -119,6 +119,9 @@ rt_inline rt_err_t rt_ipc_list_suspend(rt_list_t *list,
rt_list_insert_before(list, &(thread->tlist));
}
break;
default:
break;
}
return RT_EOK;

View File

@ -500,7 +500,10 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg)
/*timer is stop*/
*(rt_tick_t *)arg = RT_TIMER_FLAG_DEACTIVATED;
}
break;
break;
default:
break;
}
return RT_EOK;