NordicPlayground / nRF51-multi-role-conn-observer-advertiser

Runs an Observer or Advertiser role (timeslot API) with a Connection. Provides a HCI interface to the Observer and Advertiser. Advertiser provides SCAN REQs back to application.
42 stars 25 forks source link

Observer always BTLE_STATUS_CODE_COMMAND_DISALLOWED #25

Open Frogofmagic opened 7 years ago

Frogofmagic commented 7 years ago

ll_scan.c line217 adv_report->length_data = 0;

Why set 0 here?

adv_report->length_data = (adv_report->length_data ) - BTLE_DEVICE_ADDRESS__SIZE; if (adv_report->length_data > 0x1F) return; And this will always get false, because 0 - 6 = 0xFA, and 0xFA > 0x1F.