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:
parent
c6452a55cc
commit
4ef9743d1b
17 changed files with 39 additions and 29 deletions
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue