mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-07 08:38:46 +00:00
fix: inverted logic for auto adding generic trackers
This commit is contained in:
parent
6ab2a1a22e
commit
f897c51368
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ pub fn dump_generic_trackers(trackers: &[String]) -> usize {
|
||||||
let mut conf = get_monado_config_v0();
|
let mut conf = get_monado_config_v0();
|
||||||
let mut added: usize = 0;
|
let mut added: usize = 0;
|
||||||
trackers.iter().for_each(|serial| {
|
trackers.iter().for_each(|serial| {
|
||||||
if conf.has_tracker_serial(serial) {
|
if !conf.has_tracker_serial(serial) {
|
||||||
conf.tracker_roles.push(TrackerRole {
|
conf.tracker_roles.push(TrackerRole {
|
||||||
device_serial: serial.to_string(),
|
device_serial: serial.to_string(),
|
||||||
role: conf.get_next_free_xrt_tracker_role(),
|
role: conf.get_next_free_xrt_tracker_role(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue