Skip to content

Commit

Permalink
osc battery: ...that was not 1-indexed.
Browse files Browse the repository at this point in the history
no idea how I made that mistake but the sent tracker parameters were actually still 0-indexed.
  • Loading branch information
cubee-cb committed Dec 29, 2024
1 parent 85ab3f4 commit 37b9c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/osc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ impl OscSender {
"rightController"
}
TrackedDeviceRole::Tracker => {
tracker_param = format!("tracker{tracker_count}");
tracker_count += 1;
tracker_total_bat += level;
tracker_param = format!("tracker{tracker_count}");
tracker_param.as_str()
}
};
Expand Down

0 comments on commit 37b9c22

Please sign in to comment.