Review sensor physID handling (#7374)

Review sensor physID handling
This commit is contained in:
3djc
2020-03-10 18:15:03 +01:00
committed by GitHub
parent e4f8735c7a
commit cc585950c3
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -168,7 +168,13 @@ void sportProcessTelemetryPacketWithoutCrc(uint8_t origin, const uint8_t * packe
if (primId == DATA_FRAME) {
uint8_t originMask;
if (origin == TELEMETRY_ENDPOINT_SPORT) {
#if defined(SIMU) && defined(INTERNAL_MODULE_PXX2)
// When running simu on ACCESS radio, we set the origin as internal module
origin = 0;
originMask = 0x01;
#else
originMask = 0x04;
#endif
}
else {
uint8_t moduleIndex = (origin >> 2);