LEDs turned off

This commit is contained in:
Odri Tomas
2019-05-10 13:17:58 +02:00
parent 395b37b761
commit ca2bb7a8b4
2 changed files with 5 additions and 591 deletions
+5 -5
View File
@@ -216,7 +216,7 @@ static void hid_mouse_user_ev_handler(app_usbd_class_inst_t const * p_inst,
//ASSERT(0);
break;
case APP_USBD_HID_USER_EVT_IN_REPORT_DONE:
ld1.clear();
//ld1.clear();
break;
case APP_USBD_HID_USER_EVT_SET_BOOT_PROTO:
UNUSED_RETURN_VALUE(hid_mouse_clear_buffer(p_inst));
@@ -240,20 +240,20 @@ static void usbd_user_ev_handler(app_usbd_event_type_t event)
case APP_USBD_EVT_DRV_SUSPEND:
//NRF_LOG_INFO("APP_USBD_EVT_DRV_SUSPEND");
app_usbd_suspend_req(); // Allow the library to put the peripheral into sleep mode
ld1.set();
//ld1.set();
break;
case APP_USBD_EVT_DRV_RESUME:
//NRF_LOG_INFO("APP_USBD_EVT_DRV_RESUME");
ld1.clear();
//ld1.clear();
break;
case APP_USBD_EVT_STARTED:
//NRF_LOG_INFO("APP_USBD_EVT_STARTED");
ld1.clear();;
//ld1.clear();;
break;
case APP_USBD_EVT_STOPPED:
//NRF_LOG_INFO("APP_USBD_EVT_STOPPED");
app_usbd_disable();
ld1.set();
//ld1.set();
break;
case APP_USBD_EVT_POWER_DETECTED:
NRF_LOG_INFO("USB power detected");