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.
Diff: source/main.cpp
- Revision:
- 18:017918f93afe
- Parent:
- 17:e09f9a97d1af
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));