bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.74k stars 618 forks source link

Compile error in ble/sm.c:1321:104 when LE_CENTRAL is not enabled #554

Closed fominykhandrei closed 10 months ago

fominykhandrei commented 11 months ago

btstack/src/ble/sm.c:1321:104: error: use of undeclared identifier 'authenticated'; did you mean 'gap_authenticated'? le_device_db_encryption_get(sm_connection->sm_le_db_index, NULL, NULL, ltk, NULL, &authenticated, NULL, NULL); ^~~~~ gap_authenticated

"authenticated" is declared under #ifdef ENABLE_LE_CENTRAL

mringwal commented 10 months ago

Thanks for reporting. It's fixed in 45d80b0 on develop branch