@@ -62,7 +62,7 @@ set(BOOTLOADER_SRC
|
||||
boot.cpp
|
||||
)
|
||||
|
||||
remove_definitions(-DUSB_JOYSTICK -DUSB_SERIAL -DDEBUG)
|
||||
remove_definitions(-DUSB_JOYSTICK -DUSB_SERIAL -DLUA -DDEBUG)
|
||||
add_definitions(-DBOOT -DUSB_MASS_STORAGE)
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-mcpu=${MCU} -mthumb -nostartfiles -lm -T${RADIO_SRC_DIRECTORY}/targets/taranis/stm32_ramboot.ld -Wl,-Map=bootloader.map,--cref,--no-warn-mismatch,--gc-sections")
|
||||
|
||||
@@ -144,6 +144,16 @@ extern "C" void TELEMETRY_USART_IRQHandler(void)
|
||||
}
|
||||
else {
|
||||
telemetryFifo.push(data);
|
||||
#if defined(LUA)
|
||||
if (telemetryProtocol == PROTOCOL_FRSKY_SPORT) {
|
||||
static uint8_t prevdata;
|
||||
if (prevdata == 0x7E && data == luaOutputTelemetryPacket.physicalId) {
|
||||
sportSendLuaPacket(luaOutputTelemetryPacket);
|
||||
luaOutputTelemetryPacket.physicalId = 0x7E;
|
||||
}
|
||||
prevdata = data;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
status = TELEMETRY_USART->SR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user