forked from gatsby/datalink_repo
bugfix: scan fsm should be reset after a successful net scan.
This commit is contained in:
@@ -1132,6 +1132,8 @@ int32_t Linklayer_EventHandler(L2_INST* instPtr, const L2_EVENT* l2Event) {
|
|||||||
case L2_ROUTINE_FINISH: {
|
case L2_ROUTINE_FINISH: {
|
||||||
DBG_INFO("Event L2_ROUTINE_FINISH asserted....\n");
|
DBG_INFO("Event L2_ROUTINE_FINISH asserted....\n");
|
||||||
if(instPtr->nextState == INIT_STATE){
|
if(instPtr->nextState == INIT_STATE){
|
||||||
|
// Reset scan net FMS for next scan process.
|
||||||
|
ScanNet_Reset(instPtr->scanNetFSM);
|
||||||
UpdateMainSate(instPtr, NORMAL_STATE);
|
UpdateMainSate(instPtr, NORMAL_STATE);
|
||||||
instPtr->rtneConfig.rtneTable = normalTable;
|
instPtr->rtneConfig.rtneTable = normalTable;
|
||||||
instPtr->rtneConfig.rtnePrd = ARRAY_SIZE(normalTable);
|
instPtr->rtneConfig.rtnePrd = ARRAY_SIZE(normalTable);
|
||||||
|
|||||||
Reference in New Issue
Block a user