浏览代码

slow down sense with audio packets

Sanjay Govind 10 月之前
父节点
当前提交
221065fd72
共有 1 个文件被更改,包括 2 次插入0 次删除
  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.