mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Merge pull request #2845 from cleanflight/betaflight-master
merge recent BF changes
This commit is contained in:
parent
51f607fdfc
commit
534a252342
3 changed files with 4 additions and 2 deletions
|
@ -37,7 +37,7 @@ void targetConfiguration(void)
|
|||
rxConfigMutable()->sbus_inversion = 1;
|
||||
serialConfigMutable()->portConfigs[1].functionMask = FUNCTION_MSP; // So SPRacingF3OSD users don't have to change anything.
|
||||
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(TELEMETRY_UART)].functionMask = FUNCTION_TELEMETRY_SMARTPORT;
|
||||
telemetryConfigMutable()->telemetry_inversion = 0;
|
||||
telemetryConfigMutable()->halfDuplex = 0;
|
||||
telemetryConfigMutable()->telemetry_inversion = 0;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#pragma once
|
||||
|
||||
#define TARGET_BOARD_IDENTIFIER "SP4N"
|
||||
#define TARGET_CONFIG
|
||||
|
||||
#ifndef SPRACINGF4NEO_REV
|
||||
#define SPRACINGF4NEO_REV 3
|
||||
|
@ -203,7 +204,6 @@
|
|||
#define SERIALRX_PROVIDER SERIALRX_SBUS
|
||||
|
||||
#define TELEMETRY_UART SERIAL_PORT_UART5
|
||||
#define TELEMETRY_DEFAULT_HALFDUPLEX 0 // Both pins of UART5 are used for a telemetry circuit
|
||||
#define TELEMETRY_PROVIDER_DEFAULT FUNCTION_TELEMETRY_SMARTPORT
|
||||
|
||||
#define BUTTONS // Physically located on the optional OSD/VTX board.
|
||||
|
|
|
@ -56,7 +56,9 @@
|
|||
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(telemetryConfig_t, telemetryConfig, PG_TELEMETRY_CONFIG, 0);
|
||||
|
||||
#ifndef TELEMETRY_DEFAULT_INVERSION
|
||||
#define TELEMETRY_DEFAULT_INVERSION 1
|
||||
#endif
|
||||
|
||||
PG_RESET_TEMPLATE(telemetryConfig_t, telemetryConfig,
|
||||
.telemetry_inversion = TELEMETRY_DEFAULT_INVERSION,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue