Merge "Make the turret go to the right intake to save time"
diff --git a/y2022/control_loops/superstructure/led_indicator.cc b/y2022/control_loops/superstructure/led_indicator.cc
index 54b0b00..3fed503 100644
--- a/y2022/control_loops/superstructure/led_indicator.cc
+++ b/y2022/control_loops/superstructure/led_indicator.cc
@@ -36,7 +36,8 @@
bool DisconnectedPiServer(
const aos::message_bridge::ServerStatistics &server_stats) {
for (const auto *pi_server_status : *server_stats.connections()) {
- if (pi_server_status->state() == aos::message_bridge::State::DISCONNECTED) {
+ if (pi_server_status->state() == aos::message_bridge::State::DISCONNECTED &&
+ pi_server_status->node()->name()->string_view() != "logger") {
return true;
}
}
@@ -46,7 +47,8 @@
bool DisconnectedPiClient(
const aos::message_bridge::ClientStatistics &client_stats) {
for (const auto *pi_client_status : *client_stats.connections()) {
- if (pi_client_status->state() == aos::message_bridge::State::DISCONNECTED) {
+ if (pi_client_status->state() == aos::message_bridge::State::DISCONNECTED &&
+ pi_client_status->node()->name()->string_view() != "logger") {
return true;
}
}