fix: inverted logic for auto adding generic trackers

This commit is contained in:
Gabriele Musco 2023-08-29 21:59:40 +00:00
parent 6ab2a1a22e
commit f897c51368

View file

@ -205,7 +205,7 @@ pub fn dump_generic_trackers(trackers: &[String]) -> usize {
let mut conf = get_monado_config_v0();
let mut added: usize = 0;
trackers.iter().for_each(|serial| {
if conf.has_tracker_serial(serial) {
if !conf.has_tracker_serial(serial) {
conf.tracker_roles.push(TrackerRole {
device_serial: serial.to_string(),
role: conf.get_next_free_xrt_tracker_role(),