Kai Ren / Mbed OS BluetoothLEGap
Revision:
15:4d9320346162
Parent:
11:37872bf83624
Child:
16:bcb55cd411c3
diff -r a8476ddf96bf -r 4d9320346162 source/main.cpp
--- a/source/main.cpp	Fri Nov 16 16:45:20 2018 +0000
+++ b/source/main.cpp	Mon Dec 17 14:54:20 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 */ false, /* 2M */ true, /* coded */ false);
-        Gap::PhySet_t rx_phys(/* 1M */ false, /* 2M */ true, /* coded */ false);
+        Gap::PhySet_t tx_phys(/* 1M */ true, /* 2M */ false, /* coded */ false);
+        Gap::PhySet_t rx_phys(/* 1M */ true, /* 2M */ false, /* 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));