File tree 1 file changed +4
-6
lines changed
lib/wpc_proto/internal_modules
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -982,8 +982,6 @@ app_proto_res_e Proto_config_handle_set_scratchpad_target_and_action_request(
982
982
983
983
case wp_ScratchpadAction_NO_OTAP :
984
984
res = WPC_write_target_scratchpad (0 , 0 , 0 , 0 );
985
- // Read otap variable back to be sure everything is updated
986
- initialize_otap_variables ();
987
985
break ;
988
986
989
987
case wp_ScratchpadAction_PROPAGATE_AND_PROCESS_WITH_DELAY :
@@ -1056,10 +1054,6 @@ app_proto_res_e Proto_config_handle_set_scratchpad_target_and_action_request(
1056
1054
crc ,
1057
1055
req -> target_and_action .action - wp_ScratchpadAction_NO_OTAP ,
1058
1056
param );
1059
-
1060
- // Read otap variable back to be sure everything is updated
1061
- initialize_otap_variables ();
1062
-
1063
1057
break ;
1064
1058
1065
1059
default :
@@ -1071,6 +1065,10 @@ app_proto_res_e Proto_config_handle_set_scratchpad_target_and_action_request(
1071
1065
LOGE ("Target and action failed %d\n" , res );
1072
1066
}
1073
1067
1068
+ // Force otap variable read back to be sure everything is in sync
1069
+ // And generate event status
1070
+ Proto_config_refresh_otap_infos ();
1071
+
1074
1072
Common_Fill_response_header (& resp -> header ,
1075
1073
req -> header .req_id ,
1076
1074
Common_convert_error_code (res ));
You can’t perform that action at this time.
0 commit comments