Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Field Control Getter Return Value #627

Merged
merged 10 commits into from
Jan 22, 2024
4 changes: 2 additions & 2 deletions src/devices/controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ uint8_t competition_is_autonomous() {
}

uint8_t competition_is_field() {
return (competition_get_status() & COMPETITION_SYSTEM) != 0;
return ( (competition_get_status() & COMPETITION_SYSTEM) != 0 ) && competition_is_connected();
}

uint8_t competition_is_switch() {
return (competition_get_status() & COMPETITION_SYSTEM) == 0;
return ( (competition_get_status() & COMPETITION_SYSTEM) == 0) && competition_is_connected();
}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.6
4.0.6