LEDs turned off
This commit is contained in:
+5
-5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user