From 44cb070876d0b62eb7c9cccbfd49afdf0ec62a97 Mon Sep 17 00:00:00 2001 From: XavierXia <1750546761@qq.com> Date: Sun, 26 Feb 2023 21:06:58 +0100 Subject: [PATCH] update BigSurfaceHIDDriver and shorten SSH nubs publish delay --- .../BigSurface/SurfaceSerialHub/SurfaceSerialHubDriver.cpp | 4 ++-- Dependencies/BigSurfaceHIDDriver | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BigSurface/BigSurface/SurfaceSerialHub/SurfaceSerialHubDriver.cpp b/BigSurface/BigSurface/SurfaceSerialHub/SurfaceSerialHubDriver.cpp index 19406c0..625cbe1 100644 --- a/BigSurface/BigSurface/SurfaceSerialHub/SurfaceSerialHubDriver.cpp +++ b/BigSurface/BigSurface/SurfaceSerialHub/SurfaceSerialHubDriver.cpp @@ -555,8 +555,8 @@ bool SurfaceSerialHubDriver::start(IOService *provider) { goto exit; } work_loop->addEventSource(publish_timer); - // publishing nubs after 20s - publish_timer->setTimeoutMS(20 * 1000); + // publishing nubs after 1s + publish_timer->setTimeoutMS(1000); uart_interrupt = IOInterruptEventSource::interruptEventSource(this, OSMemberFunctionCast(IOInterruptEventAction, this, &SurfaceSerialHubDriver::processReceivedBuffer)); if (!uart_interrupt) { diff --git a/Dependencies/BigSurfaceHIDDriver b/Dependencies/BigSurfaceHIDDriver index 3ada9e3..a65bbc6 160000 --- a/Dependencies/BigSurfaceHIDDriver +++ b/Dependencies/BigSurfaceHIDDriver @@ -1 +1 @@ -Subproject commit 3ada9e33f71e107788aeed1a105f0da7b6a3a9b9 +Subproject commit a65bbc60a3b4277ce10f26b16c6e85fedb706120