@@ -79,6 +79,8 @@ app_proto_res_e WPC_Proto_initialize(const char * port_name,
7979 _Static_assert (WPC_PROTO_MAX_EVENTSTATUS_SIZE >= (wp_StatusEvent_size + WPC_PROTO_GENERIC_MESSAGE_OVERHEAD ),
8080 "Max proto size too low" );
8181
82+ Common_init (gateway_id , gateway_model , gateway_version , sink_id );
83+
8284 if (open_and_check_connection (bitrate , port_name ) != 0 )
8385 {
8486 return APP_RES_PROTO_WPC_NOT_INITIALIZED ;
@@ -95,7 +97,6 @@ app_proto_res_e WPC_Proto_initialize(const char * port_name,
9597 return APP_RES_PROTO_WRONG_PARAMETER ;
9698 }
9799
98- Common_init (gateway_id , gateway_model , gateway_version , sink_id );
99100 Proto_data_init ();
100101 Proto_config_init ();
101102 Proto_otap_init ();
@@ -352,11 +353,13 @@ app_proto_res_e WPC_Proto_handle_request(const uint8_t * request_p,
352353
353354}
354355
355- app_proto_res_e WPC_Proto_get_current_event_status (bool online ,
356+ app_proto_res_e WPC_Proto_get_current_event_status (bool gw_online ,
357+ bool sink_online ,
356358 uint8_t * event_status_p ,
357359 size_t * event_status_size_p )
358360{
359- return Proto_config_get_current_event_status (online ,
361+ return Proto_config_get_current_event_status (gw_online ,
362+ sink_online ,
360363 event_status_p ,
361364 event_status_size_p );
362365}
0 commit comments