Properly set PID on dummy connect events
This commit is contained in:
		@@ -71,7 +71,10 @@ Device::Device(std::shared_ptr<dj::Receiver> receiver,
 | 
				
			|||||||
    if(!event.linkEstablished)
 | 
					    if(!event.linkEstablished)
 | 
				
			||||||
        throw InvalidDevice(InvalidDevice::Asleep);
 | 
					        throw InvalidDevice(InvalidDevice::Asleep);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if(!event.fromTimeoutCheck)
 | 
				
			||||||
        _pid = event.pid;
 | 
					        _pid = event.pid;
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        _pid = receiver->getPairingInfo(_index).pid;
 | 
				
			||||||
    _init();
 | 
					    _init();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user