Jelajahi Sumber

don't send sense packets if we have just sent some other response

Sanjay Govind 10 bulan lalu
induk
melakukan
428225abe0
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      helpers/pof_usb.c
  2. 1 1
      helpers/pof_usb_xbox360.c

+ 1 - 1
helpers/pof_usb.c

@@ -115,7 +115,7 @@ static int32_t pof_thread_worker(void* context) {
             }
             }
         }
         }
 
 
-        if(flags == (uint32_t)FuriFlagErrorISR) { // timeout
+        if(flags == (uint32_t)FuriFlagErrorISR && now > next) { // timeout
             memset(tx_data, 0, sizeof(tx_data));
             memset(tx_data, 0, sizeof(tx_data));
             len_data = virtual_portal_send_status(virtual_portal, tx_data);
             len_data = virtual_portal_send_status(virtual_portal, tx_data);
             if(len_data > 0) {
             if(len_data > 0) {

+ 1 - 1
helpers/pof_usb_xbox360.c

@@ -123,7 +123,7 @@ static int32_t pof_thread_worker(void* context) {
             }
             }
         }
         }
 
 
-        if(flags == (uint32_t)FuriFlagErrorISR) { // timeout
+        if(flags == (uint32_t)FuriFlagErrorISR && now > next) { // timeout
             memset(tx_data, 0, sizeof(tx_data));
             memset(tx_data, 0, sizeof(tx_data));
             len_data = virtual_portal_send_status(virtual_portal, tx_data + 2);
             len_data = virtual_portal_send_status(virtual_portal, tx_data + 2);
             if(len_data > 0) {
             if(len_data > 0) {