Skip to content

Commit

Permalink
Fix LametricTime crash when reinit configuration for manually pairing
Browse files Browse the repository at this point in the history
  • Loading branch information
sgallou committed Sep 16, 2024
1 parent 02d2462 commit a282793
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/plugins/LametricTime/LametricTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ void CLametricTime::declareKeyword() const

void CLametricTime::fillDeviceInformationManually() const
{
if (!m_deviceInformation)
m_deviceInformation = boost::make_shared<DeviceInformation>();

m_deviceInformation->m_deviceName = DeviceName;
m_deviceInformation->m_deviceModel = m_deviceManager->getDeviceInformations()->get<std::string>("model");
m_deviceInformation->m_deviceType = m_deviceManager->getDeviceInformations()->get<std::string>("name");
Expand Down

0 comments on commit a282793

Please sign in to comment.