Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 18:017918f93afe, committed 2018-12-28
- Comitter:
- krenbluetoothsig
- Date:
- Fri Dec 28 02:54:08 2018 +0000
- Parent:
- 17:e09f9a97d1af
- Commit message:
- 1. CHG: set preferred PHY to 2M PHY.
Changed in this revision
source/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e09f9a97d1af -r 017918f93afe source/main.cpp --- a/source/main.cpp Fri Dec 28 02:42:58 2018 +0000 +++ b/source/main.cpp Fri Dec 28 02:54:08 2018 +0000 @@ -178,8 +178,8 @@ 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::PhySet_t tx_phys(/* 1M */ true, /* 2M */ false, /* coded */ false); - Gap::PhySet_t rx_phys(/* 1M */ true, /* 2M */ false, /* coded */ false); + 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));