@@ -79,6 +79,8 @@ app_proto_res_e WPC_Proto_initialize(const char * port_name,
79
79
_Static_assert (WPC_PROTO_MAX_EVENTSTATUS_SIZE >= (wp_StatusEvent_size + WPC_PROTO_GENERIC_MESSAGE_OVERHEAD ),
80
80
"Max proto size too low" );
81
81
82
+ Common_init (gateway_id , gateway_model , gateway_version , sink_id );
83
+
82
84
if (open_and_check_connection (bitrate , port_name ) != 0 )
83
85
{
84
86
return APP_RES_PROTO_WPC_NOT_INITIALIZED ;
@@ -95,7 +97,6 @@ app_proto_res_e WPC_Proto_initialize(const char * port_name,
95
97
return APP_RES_PROTO_WRONG_PARAMETER ;
96
98
}
97
99
98
- Common_init (gateway_id , gateway_model , gateway_version , sink_id );
99
100
Proto_data_init ();
100
101
Proto_config_init ();
101
102
Proto_otap_init ();
@@ -352,11 +353,13 @@ app_proto_res_e WPC_Proto_handle_request(const uint8_t * request_p,
352
353
353
354
}
354
355
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 ,
356
358
uint8_t * event_status_p ,
357
359
size_t * event_status_size_p )
358
360
{
359
- return Proto_config_get_current_event_status (online ,
361
+ return Proto_config_get_current_event_status (gw_online ,
362
+ sink_online ,
360
363
event_status_p ,
361
364
event_status_size_p );
362
365
}
0 commit comments