add LED_RED & LED_BLUE macro
This commit is contained in:
1 parent
80508ca5a4
commit
555e4a368a
3 files changed
+23
-14
No files matched your search
@@ -211,7 +211,7 @@ void BLECentral::_event_handler(ble_evt_t* evt)
|
||||
if (para->role == BLE_GAP_ROLE_CENTRAL)
|
||||
{
|
||||
Bluefruit.stopConnLed();
|
||||
if (Bluefruit._led_conn) ledOn(LED_CONN);
|
||||
if (Bluefruit._led_conn) ledOn(LED_BLUE);
|
||||
|
||||
_conn_hdl = evt->evt.gap_evt.conn_handle;
|
||||
|
||||
@@ -223,7 +223,7 @@ void BLECentral::_event_handler(ble_evt_t* evt)
|
||||
case BLE_GAP_EVT_DISCONNECTED:
|
||||
if ( _conn_hdl == evt->evt.gap_evt.conn_handle)
|
||||
{
|
||||
if (Bluefruit._led_conn) ledOff(LED_CONN);
|
||||
if (Bluefruit._led_conn) ledOff(LED_BLUE);
|
||||
|
||||
_conn_hdl = BLE_CONN_HANDLE_INVALID;
|
||||
|
||||
|
||||
Reference in new issue
Block a user