1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Fixed RX / telemetry port sharing for iBus.

This commit is contained in:
mikeller 2019-10-06 18:20:55 +13:00
parent c6452a55cc
commit 4ef9743d1b
17 changed files with 39 additions and 29 deletions

View file

@ -29,7 +29,13 @@ extern "C" {
#include "io/serial.h"
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
void serialInit(bool softserialEnabled, serialPortIdentifier_e serialPortToDisable);
PG_REGISTER(rxConfig_t, rxConfig, PG_RX_CONFIG, 0);
}
#include "unittest_macros.h"

View file

@ -46,10 +46,12 @@ extern "C" {
}
bool telemetryCheckRxPortShared(const serialPortConfig_t *portConfig)
bool telemetryCheckRxPortShared(const serialPortConfig_t *portConfig, const SerialRXType serialrxProvider)
{
//TODO: implement
(void) portConfig;
UNUSED(portConfig);
UNUSED(serialrxProvider);
return false;
}

View file

@ -329,7 +329,7 @@ bool isSerialTransmitBufferEmpty(const serialPort_t *) { return true; }
serialPortConfig_t *findSerialPortConfig(serialPortFunction_e) {return NULL;}
bool telemetryDetermineEnabledState(portSharing_e) {return true;}
bool telemetryCheckRxPortShared(const serialPortConfig_t *) {return true;}
bool telemetryCheckRxPortShared(const serialPortConfig_t *, SerialRXType) {return true;}
bool telemetryIsSensorEnabled(sensor_e) {return true;}
portSharing_e determinePortSharing(const serialPortConfig_t *, serialPortFunction_e) {return PORTSHARING_NOT_SHARED;}