Skip to content

Commit

Permalink
role: process team selector when scanned
Browse files Browse the repository at this point in the history
  • Loading branch information
deadman96385 committed Feb 29, 2024
1 parent 785f050 commit 73add98
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ private void process_qr(String raw_qr) {
boolean locked = Boolean.parseBoolean(qr_data[7]);
int match = Integer.parseInt(qr_data[9]);
boolean delete_data = Boolean.parseBoolean(qr_data[11]);
boolean team_selector = Boolean.parseBoolean(qr_data[13]);

if (delete_data) {
PowerPreference.clearAllData();
Expand All @@ -400,6 +401,7 @@ private void process_qr(String raw_qr) {
configPreference.setInt("crowd_position", crowd_num);
configPreference.setString("current_scouter", name);
configPreference.setBoolean("role_locked_toggle", locked);
configPreference.setBoolean("altMode", team_selector);
//configPreference.setInt("current_match", match);

//if (locked) {
Expand Down

0 comments on commit 73add98

Please sign in to comment.