[nv14] aligned telemetry signal polarity on other radios and fixed requested polarity for MPM
Resolves #590 Resolves #613
This commit is contained in:
@@ -134,7 +134,7 @@ void setupPulsesMulti(uint8_t moduleIdx)
|
|||||||
{
|
{
|
||||||
static int counter[2] = {0,0}; //TODO
|
static int counter[2] = {0,0}; //TODO
|
||||||
static uint8_t invert[2] = {0x00, //internal
|
static uint8_t invert[2] = {0x00, //internal
|
||||||
#if defined(PCBTARANIS) || defined(PCBHORUS) || defined(NV14)
|
#if defined(PCBTARANIS) || defined(PCBHORUS) || defined(PCBNV14)
|
||||||
0x08 //external
|
0x08 //external
|
||||||
#else
|
#else
|
||||||
0x00 //external
|
0x00 //external
|
||||||
|
|||||||
@@ -66,13 +66,10 @@ void telemetryPortInitCommon(uint32_t baudrate, uint8_t mode, uint8_t noinv = 0)
|
|||||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
|
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
|
||||||
GPIO_Init(TELEMETRY_REV_GPIO, &GPIO_InitStructure);
|
GPIO_Init(TELEMETRY_REV_GPIO, &GPIO_InitStructure);
|
||||||
|
|
||||||
if (noinv == 0)
|
if (noinv != 0) {
|
||||||
{
|
|
||||||
TELEMETRY_TX_POL_NORM();
|
TELEMETRY_TX_POL_NORM();
|
||||||
TELEMETRY_RX_POL_NORM();
|
TELEMETRY_RX_POL_NORM();
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
TELEMETRY_TX_POL_INV();
|
TELEMETRY_TX_POL_INV();
|
||||||
TELEMETRY_RX_POL_INV();
|
TELEMETRY_RX_POL_INV();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user