Compilation fixes
This commit is contained in:
@@ -141,7 +141,6 @@ set(SRC
|
||||
tasks.cpp
|
||||
audio.cpp
|
||||
io/frsky_sport.cpp
|
||||
io/frsky_device_firmware_update.cpp
|
||||
telemetry/telemetry.cpp
|
||||
telemetry/telemetry_holders.cpp
|
||||
telemetry/telemetry_sensors.cpp
|
||||
|
||||
@@ -135,6 +135,12 @@ void intmoduleSendNextFrame()
|
||||
switch(moduleSettings[INTERNAL_MODULE].protocol) {
|
||||
#if defined(PXX2)
|
||||
case PROTOCOL_CHANNELS_PXX2:
|
||||
#if defined(LUA)
|
||||
if (outputTelemetryBuffer.size > 0 && outputTelemetryBuffer.destination == INTERNAL_MODULE) {
|
||||
intmoduleSendBuffer(outputTelemetryBuffer.data, outputTelemetryBuffer.size);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
intmoduleSendBuffer(intmodulePulsesData.pxx2.getData(), intmodulePulsesData.pxx2.getSize());
|
||||
break;
|
||||
#endif
|
||||
|
||||
@@ -146,6 +146,7 @@ add_definitions(-DBLUETOOTH)
|
||||
set(SRC
|
||||
${SRC}
|
||||
bluetooth.cpp
|
||||
io/frsky_device_firmware_update.cpp
|
||||
)
|
||||
|
||||
set(STM32LIB_SRC
|
||||
|
||||
@@ -176,8 +176,8 @@ extern "C" void TELEMETRY_DMA_TX_IRQHandler(void)
|
||||
DMA_ClearITPendingBit(TELEMETRY_DMA_Stream_TX, TELEMETRY_DMA_TX_FLAG_TC);
|
||||
TELEMETRY_USART->CR1 |= USART_CR1_TCIE;
|
||||
if (telemetryProtocol == PROTOCOL_TELEMETRY_FRSKY_SPORT) {
|
||||
outputTelemetryBufferSize = 0;
|
||||
outputTelemetryBufferTrigger = 0x7E;
|
||||
outputTelemetryBuffer.size = 0;
|
||||
outputTelemetryBuffer.trigger = 0x7E;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -207,8 +207,8 @@ extern "C" void TELEMETRY_USART_IRQHandler(void)
|
||||
#if defined(LUA)
|
||||
if (telemetryProtocol == PROTOCOL_TELEMETRY_FRSKY_SPORT) {
|
||||
static uint8_t prevdata;
|
||||
if (prevdata == 0x7E && outputTelemetryBufferSize > 0 && data == outputTelemetryBufferTrigger) {
|
||||
sportSendBuffer(outputTelemetryBuffer, outputTelemetryBufferSize);
|
||||
if (prevdata == 0x7E && outputTelemetryBuffer.size > 0 && data == outputTelemetryBuffer.trigger && outputTelemetryBuffer.destination == SPORT_MODULE) {
|
||||
sportSendBuffer(outputTelemetryBuffer.data, outputTelemetryBuffer.size);
|
||||
}
|
||||
prevdata = data;
|
||||
}
|
||||
|
||||
@@ -263,6 +263,7 @@ void init_serial(uint32_t port, uint32_t baudrate, uint32_t period_half_us);
|
||||
void disable_serial(uint32_t port);
|
||||
void init_module_timer( uint32_t module_index, uint32_t period, uint8_t state);
|
||||
void disable_module_timer( uint32_t module_index);
|
||||
void extmoduleSendNextFrame();
|
||||
|
||||
// SD driver
|
||||
#if defined(SIMU)
|
||||
|
||||
@@ -265,6 +265,10 @@ void disable_serial(uint32_t port)
|
||||
}
|
||||
}
|
||||
|
||||
void extmoduleSendNextFrame()
|
||||
{
|
||||
|
||||
}
|
||||
#if !defined(SIMU)
|
||||
extern "C" void PWM_IRQHandler(void)
|
||||
{
|
||||
|
||||
@@ -202,6 +202,11 @@ endif()
|
||||
add_definitions(-DPCBTARANIS)
|
||||
add_definitions(-DAUDIO -DVOICE -DRTCLOCK)
|
||||
|
||||
set(SRC
|
||||
${SRC}
|
||||
io/frsky_device_firmware_update.cpp
|
||||
)
|
||||
|
||||
set(GUI_SRC
|
||||
${GUI_SRC}
|
||||
model_input_edit.cpp
|
||||
|
||||
@@ -128,8 +128,7 @@ extern "C" void TELEMETRY_DMA_TX_IRQHandler(void)
|
||||
DMA_ClearITPendingBit(TELEMETRY_DMA_Stream_TX, TELEMETRY_DMA_TX_FLAG_TC);
|
||||
TELEMETRY_USART->CR1 |= USART_CR1_TCIE;
|
||||
if (telemetryProtocol == PROTOCOL_TELEMETRY_FRSKY_SPORT || telemetryProtocol == PROTOCOL_TELEMETRY_PXX2) {
|
||||
outputTelemetryBufferSize = 0;
|
||||
outputTelemetryBufferTrigger = 0x7E;
|
||||
outputTelemetryBuffer.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -159,8 +158,8 @@ extern "C" void TELEMETRY_USART_IRQHandler(void)
|
||||
#if defined(LUA)
|
||||
if (telemetryProtocol == PROTOCOL_TELEMETRY_FRSKY_SPORT) {
|
||||
static uint8_t prevdata;
|
||||
if (prevdata == 0x7E && outputTelemetryBufferSize > 0 && data == outputTelemetryBufferTrigger) {
|
||||
sportSendBuffer(outputTelemetryBuffer, outputTelemetryBufferSize);
|
||||
if (prevdata == 0x7E && outputTelemetryBuffer.size > 0 && data == outputTelemetryBuffer.trigger && outputTelemetryBuffer.destination == SPORT_MODULE) {
|
||||
sportSendBuffer(outputTelemetryBuffer.data, outputTelemetryBuffer.size);
|
||||
}
|
||||
prevdata = data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user