Skip to content

Commit f75c72d

Browse files
committed
Fix SafeEnum comparison.
1 parent a10619d commit f75c72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BLE_LEDBlinker/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class LEDBlinkerDemo : ble::Gap::EventHandler {
136136
}
137137

138138
void onConnectionComplete(const ble::ConnectionCompleteEvent& event) {
139-
if (event.getOwnRole() == Gap::CENTRAL) {
139+
if (event.getOwnRole() == ble::connection_role_t::CENTRAL) {
140140
_ble.gattClient().onServiceDiscoveryTermination(discovery_termination);
141141
_ble.gattClient().launchServiceDiscovery(
142142
event.getConnectionHandle(),

0 commit comments

Comments
 (0)