Skip to content

Commit af07113

Browse files
committed
Revert "Jira 857, BLEPeripheral::connected() always returns false, git 444"
This reverts commit a2df179.
1 parent 74d496f commit af07113

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/CurieBLE/src/BLEPeripheral.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ BLECentral BLEPeripheral::central(void)
146146

147147
bool BLEPeripheral::connected(void)
148148
{
149-
BLEDevice centralBle = BLE.central();
150-
return centralBle.connected();
149+
return BLE.connected();
151150
}
152151

153152
void BLEPeripheral::init()

0 commit comments

Comments
 (0)