Telemetry/AVR/Unify serial driver
This commit is contained in:
committed by
Bertrand Songis
parent
2f9d9c1a99
commit
f83aef4606
@@ -48,7 +48,7 @@ enum FrSkyDataState {
|
||||
#endif
|
||||
};
|
||||
|
||||
NOINLINE void processFrskyTelemetryData(uint8_t data)
|
||||
NOINLINE void processSerialData(uint8_t data)
|
||||
{
|
||||
static uint8_t dataState = STATE_DATA_IDLE;
|
||||
|
||||
|
||||
@@ -479,6 +479,6 @@ void frskySetCellVoltage(uint8_t battnumber, frskyCellVoltage_t cellVolts);
|
||||
void frskyUpdateCells();
|
||||
#endif
|
||||
|
||||
void processFrskyTelemetryData(uint8_t data);
|
||||
void processSerialData(uint8_t data);
|
||||
|
||||
#endif // _FRSKY_H_
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#define MAVLINK_COMM_NUM_BUFFERS 1
|
||||
|
||||
#include "GCS_MAVLink/include_v1.0/mavlink_types.h"
|
||||
#include "targets/common/avr/serial_driver.h"
|
||||
#include "opentx.h"
|
||||
|
||||
extern int8_t mav_heartbeat;
|
||||
|
||||
@@ -82,7 +82,7 @@ void processTelemetryData(uint8_t data)
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
processFrskyTelemetryData(data);
|
||||
processSerialData(data);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -115,7 +115,7 @@ void telemetryWakeup()
|
||||
if (telemetryProtocol == PROTOCOL_FRSKY_D_SECONDARY) {
|
||||
uint8_t data;
|
||||
while (telemetrySecondPortReceive(data)) {
|
||||
processFrskyTelemetryData(data);
|
||||
processSerialData(data);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user