Skip to content

Commit

Permalink
BluetoothControl: switch to BLUEZ_HAS_NO_INCLUSIVE_LANGUAGE define (#831
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bramoosterhuis authored Sep 23, 2024
1 parent 20ad98d commit 7fefc05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BluetoothControl/BluetoothControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class BluetoothControl : public PluginHost::IPlugin
if (info.store_hint != 0) {
if (_parent.SecurityKey(info.key.addr.bdaddr, static_cast<Bluetooth::Address::type>(info.key.addr.type),
Bluetooth::LongTermKey(info.key.addr.bdaddr, info.key.addr.type, info.key.type,
#ifdef NO_INCLUSIVE_LANGUAGE
#ifdef BLUEZ_HAS_NO_INCLUSIVE_LANGUAGE
info.key.central,
#else
info.key.master,
Expand Down
2 changes: 1 addition & 1 deletion BluetoothControl/Tracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ namespace Plugin {
FORMAT_EVENT(MGMT_EV_NEW_LONG_TERM_KEY, info.key.addr.bdaddr, info.key.addr.type);
string key;
Core::ToHexString(info.key.val, sizeof(info.key.val), key);
#ifdef NO_INCLUSIVE_LANGUAGE
#ifdef BLUEZ_HAS_NO_INCLUSIVE_LANGUAGE
Format(_T("store_hint=%d, key.type=%d, key.central=%d"), info.store_hint, info.key.type, info.key.central);
#else
Format(_T("store_hint=%d, key.type=%d, key.master=%d"), info.store_hint, info.key.type, info.key.master);
Expand Down

0 comments on commit 7fefc05

Please sign in to comment.