Skip to content

Commit

Permalink
fix gap example to match GAP fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-szczepanek-arm committed Oct 17, 2018
1 parent bb89d5b commit 68afa73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BLE_GAP/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ class GAPDevice : private mbed::NonCopyable<GAPDevice>, public Gap::EventHandler
addr[5], addr[4], addr[3], addr[2], addr[1], addr[0]);

/* setup the default phy used in connection to 2M to reduce power consumption */
Gap::Phys_t tx_phys = { /* 1M */ false, /* 2M */ true, /* coded */ false };
Gap::Phys_t rx_phys = { /* 1M */ false, /* 2M */ true, /* coded */ false };
ble_error_t err = _ble.gap().setPreferedPhys(&tx_phys, &rx_phys);
Gap::PhySet_t tx_phys(/* 1M */ false, /* 2M */ true, /* coded */ false);
Gap::PhySet_t rx_phys(/* 1M */ false, /* 2M */ true, /* coded */ false);
ble_error_t err = _ble.gap().setPreferredPhys(&tx_phys, &rx_phys);
if (err) {
printf("INFO: GAP::setPreferedPhys failed with error code %s", BLE::errorToString(err));
}
Expand Down

0 comments on commit 68afa73

Please sign in to comment.