From 497ec07bdf67ba0cac59dac162a3d8e787dc611b Mon Sep 17 00:00:00 2001 From: pixl Date: Tue, 14 Jul 2020 16:20:58 -0400 Subject: [PATCH] Properly set PID on dummy connect events --- src/logid/backend/hidpp/Device.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/logid/backend/hidpp/Device.cpp b/src/logid/backend/hidpp/Device.cpp index 5e62a66..d4bf994 100644 --- a/src/logid/backend/hidpp/Device.cpp +++ b/src/logid/backend/hidpp/Device.cpp @@ -71,7 +71,10 @@ Device::Device(std::shared_ptr receiver, if(!event.linkEstablished) throw InvalidDevice(InvalidDevice::Asleep); - _pid = event.pid; + if(!event.fromTimeoutCheck) + _pid = event.pid; + else + _pid = receiver->getPairingInfo(_index).pid; _init(); }