default_app_on_connection calls app_easy_gap_advertise_with_timeout_stop() twice

2 posts / 0 new
Last post
oren
Offline
Last seen:1 year 7 months ago
Expert
加入:2014-06-28 22:03
default_app_on_connection calls app_easy_gap_advertise_with_timeout_stop() twice

Hi, I am using SDK 5.0.3
In app_default_handlers.c, the functiondefault_app_on_connection(...)checks ifuser_default_hnd_conf.adv_scenario==DEF_ADV_WITH_TIMEOUTand then callsapp_easy_gap_advertise_with_timeout_stop(), then it callsdefault_advertise_stop_operationwhich does the same thing...
Is there a real reason for that?

Best,
Oren

Device:
MT_dialog
Offline
Last seen:2 months 4 days ago
工作人员
加入:2015-06-08 11:34
嗨矿石n,

嗨矿石n,

Indeed this is duplicated code, its a known issue and the default_advertise_stop_operation() will be removed in a next SDK release.

Thanks MT_dialog

Topic locked