mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
Move FY90q acc/gyro code to accgyro_fy90q.c. Update ADC drivers so they
do not include "board.h". It is now clear what all ADC drivers need to compile and what was unnecessarily included before. Note: FY90Q make target now compiles successfully, it was broken for various reasons before.
This commit is contained in:
parent
5442f8ea41
commit
001de4cdf3
10 changed files with 139 additions and 83 deletions
|
@ -46,14 +46,22 @@ void initTelemetry(void)
|
|||
if (!feature(FEATURE_SOFTSERIAL))
|
||||
mcfg.telemetry_port = TELEMETRY_PORT_UART;
|
||||
|
||||
#ifdef FY90Q
|
||||
// FY90Q does not support softserial
|
||||
mcfg.telemetry_port = TELEMETRY_PORT_UART;
|
||||
core.telemport = core.mainport;
|
||||
#endif
|
||||
|
||||
isTelemetryConfigurationValid = canUseTelemetryWithCurrentConfiguration();
|
||||
|
||||
#ifndef FY90Q
|
||||
if (mcfg.telemetry_port == TELEMETRY_PORT_SOFTSERIAL_1)
|
||||
core.telemport = &(softSerialPorts[0].port);
|
||||
else if (mcfg.telemetry_port == TELEMETRY_PORT_SOFTSERIAL_2)
|
||||
core.telemport = &(softSerialPorts[1].port);
|
||||
else
|
||||
core.telemport = core.mainport;
|
||||
#endif
|
||||
|
||||
checkTelemetryState();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue