Fixed simu build failure for NV14.
This commit is contained in:
@@ -483,7 +483,7 @@ void telemetryPortInit(uint32_t baudrate, uint8_t mode);
|
|||||||
void telemetryPortSetDirectionOutput();
|
void telemetryPortSetDirectionOutput();
|
||||||
void telemetryPortSetDirectionInput();
|
void telemetryPortSetDirectionInput();
|
||||||
void sportSendBuffer(uint8_t * buffer, uint32_t count);
|
void sportSendBuffer(uint8_t * buffer, uint32_t count);
|
||||||
uint8_t telemetryGetByte(uint8_t * byte);
|
bool telemetryGetByte(uint8_t * byte);
|
||||||
void telemetryClearFifo();
|
void telemetryClearFifo();
|
||||||
void sportSendByte(uint8_t byte);
|
void sportSendByte(uint8_t byte);
|
||||||
extern uint32_t telemetryErrors;
|
extern uint32_t telemetryErrors;
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ extern "C" void TELEMETRY_USART_IRQHandler(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO we should have telemetry in an higher layer, functions above should move to a sport_driver.cpp
|
// TODO we should have telemetry in an higher layer, functions above should move to a sport_driver.cpp
|
||||||
uint8_t telemetryGetByte(uint8_t * byte)
|
bool telemetryGetByte(uint8_t * byte)
|
||||||
{
|
{
|
||||||
#if defined(PCBX12S)
|
#if defined(PCBX12S)
|
||||||
if (telemetryFifoMode & TELEMETRY_SERIAL_WITHOUT_DMA)
|
if (telemetryFifoMode & TELEMETRY_SERIAL_WITHOUT_DMA)
|
||||||
|
|||||||
Reference in New Issue
Block a user