Bläddra i källkod

slow down sense with audio packets

Sanjay Govind 10 månader sedan
förälder
incheckning
221065fd72
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      helpers/pof_usb_xbox360.c

+ 2 - 0
helpers/pof_usb_xbox360.c

@@ -82,6 +82,8 @@ static int32_t pof_thread_worker(void* context) {
                 FURI_LOG_RAW_I("\r\n");
                 */
                 virtual_portal_process_audio(virtual_portal, buf + 2, len_data - 2);
+                timeout = TIMEOUT_AFTER_RESPONSE;
+                last = now;
             }
 
             // Check next status time since the timeout based one might be starved by incoming packets.