Various fixes

This commit is contained in:
2025-07-27 14:31:48 -04:00
parent d8696fa6fc
commit de44202196
6 changed files with 31 additions and 25 deletions

View File

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