mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #9720 from codecae/crsf_displayport_init_fix
Relocated CRSF CMS display port init from telemetry to fc
This commit is contained in:
commit
bf9cc615c5
2 changed files with 5 additions and 4 deletions
|
@ -101,6 +101,7 @@
|
||||||
#include "io/asyncfatfs/asyncfatfs.h"
|
#include "io/asyncfatfs/asyncfatfs.h"
|
||||||
#include "io/beeper.h"
|
#include "io/beeper.h"
|
||||||
#include "io/dashboard.h"
|
#include "io/dashboard.h"
|
||||||
|
#include "io/displayport_crsf.h"
|
||||||
#include "io/displayport_frsky_osd.h"
|
#include "io/displayport_frsky_osd.h"
|
||||||
#include "io/displayport_max7456.h"
|
#include "io/displayport_max7456.h"
|
||||||
#include "io/displayport_msp.h"
|
#include "io/displayport_msp.h"
|
||||||
|
@ -1024,6 +1025,10 @@ void init(void)
|
||||||
cmsDisplayPortRegister(displayPortSrxlInit());
|
cmsDisplayPortRegister(displayPortSrxlInit());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(USE_CMS) && defined(USE_CRSF_CMS_TELEMETRY)
|
||||||
|
cmsDisplayPortRegister(displayPortCrsfInit());
|
||||||
|
#endif
|
||||||
|
|
||||||
setArmingDisabled(ARMING_DISABLED_BOOT_GRACE_TIME);
|
setArmingDisabled(ARMING_DISABLED_BOOT_GRACE_TIME);
|
||||||
|
|
||||||
#ifdef USE_MOTOR
|
#ifdef USE_MOTOR
|
||||||
|
|
|
@ -462,10 +462,6 @@ void initCrsfTelemetry(void)
|
||||||
mspReplyPending = false;
|
mspReplyPending = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_CMS) && defined(USE_CRSF_CMS_TELEMETRY)
|
|
||||||
cmsDisplayPortRegister(displayPortCrsfInit());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
if (sensors(SENSOR_ACC) && telemetryIsSensorEnabled(SENSOR_PITCH | SENSOR_ROLL | SENSOR_HEADING)) {
|
if (sensors(SENSOR_ACC) && telemetryIsSensorEnabled(SENSOR_PITCH | SENSOR_ROLL | SENSOR_HEADING)) {
|
||||||
crsfSchedule[index++] = BV(CRSF_FRAME_ATTITUDE_INDEX);
|
crsfSchedule[index++] = BV(CRSF_FRAME_ATTITUDE_INDEX);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue