mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-05 17:51:57 +02:00
Fix sensor count reporting (#454)
This commit is contained in:
@@ -285,11 +285,15 @@ public:
|
||||
extraParam,
|
||||
});
|
||||
}
|
||||
if (sensor->isWorking()) {
|
||||
m_Manager->m_Logger.info("Sensor %d configured", sensorID);
|
||||
}
|
||||
|
||||
bool working = sensor->isWorking();
|
||||
m_Manager->m_Sensors.push_back(std::move(sensor));
|
||||
|
||||
if (!working) {
|
||||
return false;
|
||||
}
|
||||
|
||||
m_Manager->m_Logger.info("Sensor %d configured", sensorID);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user