feat: add support for ExpressLRS optional arming method (#5641)

Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
Michael
2024-11-22 21:32:40 +10:00
committed by GitHub
co-authored by elecpower
parent ebb5d39a14
commit 8fd3d50add
69 changed files with 654 additions and 38 deletions
+11
View File
@@ -270,6 +270,17 @@ void processCrossfireTelemetryFrame(uint8_t module, uint8_t* rxBuffer,
crossfireModuleStatus[module].major = rxBuffer[14 + nameSize];
crossfireModuleStatus[module].minor = rxBuffer[15 + nameSize];
crossfireModuleStatus[module].revision = rxBuffer[16 + nameSize];
ModuleData *md = &g_model.moduleData[module];
if(!CRSF_ELRS_MIN_VER(module, 4, 0) &&
(md->crsf.crsfArmingMode != ARMING_MODE_CH5 || md->crsf.crsfArmingMode != SWSRC_NONE)) {
md->crsf.crsfArmingMode = ARMING_MODE_CH5;
md->crsf.crsfArmingTrigger = SWSRC_NONE;
storageDirty(EE_MODEL);
}
crossfireModuleStatus[module].queryCompleted = true;
}