Telemetry/AVR/Function renaming

renamed processSerialData to processTelemetryData acording to PR review
This commit is contained in:
PT_Dreamer
2017-02-04 12:08:26 +01:00
committed by Bertrand Songis
parent b87fddf3e7
commit fbd881f8d9
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ bool sportWaitState(SportUpdateState state, int timeout)
for (int i=timeout/2; i>=0; i--) {
uint8_t byte ;
while (telemetryGetByte(&byte)) {
processSerialData(byte);
processTelemetryData(byte);
}
if (sportUpdateState == state) {
return true;
@@ -45,7 +45,7 @@ void telemetryEnableRx(void)
UCSRB_N(TLM_USART) |= (1 << RXCIE_N(TLM_USART)); // enable Interrupt
}
void processSerialData(uint8_t data);
void processTelemetryData(uint8_t data);
extern uint8_t telemetryRxBufferCount;
ISR(USART_RX_vect_N(TLM_USART))
@@ -94,7 +94,7 @@ ISR(USART_RX_vect_N(TLM_USART))
telemetryRxBufferCount = 0;
}
else {
processSerialData(data);
processTelemetryData(data);
}
cli() ;
+1 -1
View File
@@ -48,7 +48,7 @@ enum FrSkyDataState {
#endif
};
NOINLINE void processSerialData(uint8_t data)
NOINLINE void processTelemetryData(uint8_t data)
{
static uint8_t dataState = STATE_DATA_IDLE;
+1 -1
View File
@@ -479,6 +479,6 @@ void frskySetCellVoltage(uint8_t battnumber, frskyCellVoltage_t cellVolts);
void frskyUpdateCells();
#endif
void processSerialData(uint8_t data);
void processTelemetryData(uint8_t data);
#endif // _FRSKY_H_
+1 -1
View File
@@ -48,7 +48,7 @@ Telemetry_Data_t telemetry_data;
static void MAVLINK_parse_char(uint8_t c);
uint8_t telemetryRxBufferCount = 0;
void processSerialData(uint8_t byte) {
void processTelemetryData(uint8_t byte) {
MAVLINK_parse_char(byte);
}
+2 -2
View File
@@ -82,7 +82,7 @@ void processTelemetryData(uint8_t data)
return;
}
#endif
processSerialData(data);
processTelemetryData(data);
}
#endif
@@ -115,7 +115,7 @@ void telemetryWakeup()
if (telemetryProtocol == PROTOCOL_FRSKY_D_SECONDARY) {
uint8_t data;
while (telemetrySecondPortReceive(data)) {
processSerialData(data);
processTelemetryData(data);
}
}
else {