File tree 1 file changed +3
-0
lines changed
Filter options
1 file changed +3
-0
lines changed
Original file line number Diff line number Diff line change @@ -100,13 +100,15 @@ static bool tinyusb_device_suspended = false;
100
100
void tud_mount_cb (void ) {
101
101
tinyusb_device_mounted = true ;
102
102
arduino_usb_event_data_t p;
103
+ p.suspend .remote_wakeup_en = 0 ;
103
104
arduino_usb_event_post (ARDUINO_USB_EVENTS, ARDUINO_USB_STARTED_EVENT, &p, sizeof (arduino_usb_event_data_t ), portMAX_DELAY);
104
105
}
105
106
106
107
// Invoked when device is unmounted
107
108
void tud_umount_cb (void ) {
108
109
tinyusb_device_mounted = false ;
109
110
arduino_usb_event_data_t p;
111
+ p.suspend .remote_wakeup_en = 0 ;
110
112
arduino_usb_event_post (ARDUINO_USB_EVENTS, ARDUINO_USB_STOPPED_EVENT, &p, sizeof (arduino_usb_event_data_t ), portMAX_DELAY);
111
113
}
112
114
@@ -123,6 +125,7 @@ void tud_suspend_cb(bool remote_wakeup_en) {
123
125
void tud_resume_cb (void ) {
124
126
tinyusb_device_suspended = false ;
125
127
arduino_usb_event_data_t p;
128
+ p.suspend .remote_wakeup_en = 0 ;
126
129
arduino_usb_event_post (ARDUINO_USB_EVENTS, ARDUINO_USB_RESUME_EVENT, &p, sizeof (arduino_usb_event_data_t ), portMAX_DELAY);
127
130
}
128
131
You can’t perform that action at this time.
0 commit comments