Sanjay Govind 10 месяцев назад
Родитель
Сommit
81e253f6a2
2 измененных файлов с 6 добавлено и 6 удалено
  1. 3 3
      helpers/pof_usb.c
  2. 3 3
      helpers/pof_usb_xbox360.c

+ 3 - 3
helpers/pof_usb.c

@@ -71,7 +71,7 @@ static int32_t pof_thread_worker(void* context) {
                 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);
                     timeout = TIMEOUT_AFTER_RESPONSE;
                     timeout = TIMEOUT_AFTER_RESPONSE;
-                    last = now();
+                    last = now;
                 }
                 }
                 pof_usb->dataAvailable = 0;
                 pof_usb->dataAvailable = 0;
             }
             }
@@ -83,7 +83,7 @@ static int32_t pof_thread_worker(void* context) {
                 if(len_data > 0) {
                 if(len_data > 0) {
                     pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
                     pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
                 }
                 }
-                last = now();
+                last = now;
                 timeout = TIMEOUT_NORMAL;
                 timeout = TIMEOUT_NORMAL;
             }
             }
 
 
@@ -121,7 +121,7 @@ static int32_t pof_thread_worker(void* context) {
             if(len_data > 0) {
             if(len_data > 0) {
                 pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
                 pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
             }
             }
-            last = now();
+            last = now;
             timeout = TIMEOUT_NORMAL;
             timeout = TIMEOUT_NORMAL;
         }
         }
     }
     }

+ 3 - 3
helpers/pof_usb_xbox360.c

@@ -73,7 +73,7 @@ static int32_t pof_thread_worker(void* context) {
                     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);
                     timeout = TIMEOUT_AFTER_RESPONSE;
                     timeout = TIMEOUT_AFTER_RESPONSE;
-                    last = now();
+                    last = 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
@@ -95,7 +95,7 @@ static int32_t pof_thread_worker(void* context) {
                     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);
                 }
                 }
-                last = now();
+                last = now;
                 timeout = TIMEOUT_NORMAL;
                 timeout = TIMEOUT_NORMAL;
             }
             }
 
 
@@ -136,7 +136,7 @@ static int32_t pof_thread_worker(void* context) {
                 pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
                 pof_usb_send(dev, tx_data, POF_USB_ACTUAL_OUTPUT_SIZE);
             }
             }
             timeout = TIMEOUT_NORMAL;
             timeout = TIMEOUT_NORMAL;
-            last = now();
+            last = now;
         }
         }
     }
     }