Skip to content

Commit

Permalink
update BigSurfaceHIDDriver and shorten SSH nubs publish delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiashangning committed Feb 26, 2023
1 parent 04e9410 commit 44cb070
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 44cb070

Please sign in to comment.