Przeglądaj źródła

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

Sanjay Govind 10 miesięcy temu
rodzic
commit
352d3e5120
2 zmienionych plików z 2 dodań i 0 usunięć
  1. 1 0
      helpers/pof_usb.c
  2. 1 0
      helpers/pof_usb_xbox360.c

+ 1 - 0
helpers/pof_usb.c

@@ -70,6 +70,7 @@ static int32_t pof_thread_worker(void* context) {
                     virtual_portal_process_message(virtual_portal, pof_usb->data, tx_data);
                     virtual_portal_process_message(virtual_portal, pof_usb->data, tx_data);
                 if(send_len > 0) {
                 if(send_len > 0) {
                     pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
                     pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
+                    lastStatus = now;
                 }
                 }
                 pof_usb->dataAvailable = 0;
                 pof_usb->dataAvailable = 0;
             }
             }

+ 1 - 0
helpers/pof_usb_xbox360.c

@@ -69,6 +69,7 @@ static int32_t pof_thread_worker(void* context) {
                     tx_data[0] = 0x0b;
                     tx_data[0] = 0x0b;
                     tx_data[1] = 0x14;
                     tx_data[1] = 0x14;
                     pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
                     pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
+                    lastStatus = now;
                 }
                 }
             } else if (len_data > 0 && buf[0] == 0x0b && buf[1] == 0x17) {
             } else if (len_data > 0 && buf[0] == 0x0b && buf[1] == 0x17) {
                 // 360 audio packets start with 0b 17, samples start after the two byte header
                 // 360 audio packets start with 0b 17, samples start after the two byte header