Update CommunicationRouter.cpp

This commit is contained in:
2025-07-27 14:31:48 -04:00
parent 2ab116fef0
commit 3cbdf0845d

View File

@@ -137,14 +137,11 @@ std::pair<std::vector<uint8_t>, std::vector<Orientation>> CommunicationRouter::g
} }
} }
for (int i = 0; i < MAX_WIRED_CONNECTIONS; i++) { // if (const auto id = connected_module_ids[0]; 0 == id) {
const auto id = connected_module_ids[i]; // connected_module_orientations[0] = Orientation_Deg0;
// if (const auto id = connected_module_ids[i]; 0 == id) { // } else {
// connected_module_orientations[i] = Orientation_Deg0; connected_module_orientations[0] = OrientationDetection::get_orientation(0);
// } else { // }
connected_module_orientations[i] = OrientationDetection::get_orientation(id);
// }
}
return { connected_module_ids, connected_module_orientations }; return { connected_module_ids, connected_module_orientations };
} }