From e68cdcd40f03bf22573b28adf5efcbc4122a6f4e Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Thu, 3 Sep 2026 11:54:35 -0600 Subject: [PATCH] Fix scoping --- tools/Test-SwitchPicoMac.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Test-SwitchPicoMac.swift b/tools/Test-SwitchPicoMac.swift index ad0aa45..957cc51 100755 --- a/tools/Test-SwitchPicoMac.swift +++ b/tools/Test-SwitchPicoMac.swift @@ -287,7 +287,7 @@ private func inputValueCallback( } let manager: IOHIDManager = IOHIDManagerCreate(kCFAllocatorDefault, IOOptionBits(kIOHIDOptionsTypeNone)) -let monitorInstance = HIDMonitor(manager: manager, runLoop: CFRunLoopGetCurrent()) +private let monitorInstance = HIDMonitor(manager: manager, runLoop: CFRunLoopGetCurrent()) let openResult = monitorInstance.start() if openResult != kIOReturnSuccess { monitorInstance.cleanup()