Listen for events on receiver device on timeout
Previously, if a receiver device didn't respond during the initial scan, logid would not recognize it until it sent a wakeup/connect event. This makes it so if the device times out, logid will listen for the next event from the device and try detecting it. (e.g. shaking the mouse will make it become detected)
This commit is contained in:
@@ -42,6 +42,8 @@ namespace dj
|
||||
virtual void addDevice(hidpp::DeviceConnectionEvent event) = 0;
|
||||
virtual void removeDevice(hidpp::DeviceIndex index) = 0;
|
||||
|
||||
void waitForDevice(hidpp::DeviceIndex index);
|
||||
|
||||
// Internal methods for derived class
|
||||
void _pair(uint8_t timeout = 0);
|
||||
void _stopPairing();
|
||||
|
||||
Reference in New Issue
Block a user