mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Please Travis (#7802)
This commit is contained in:
parent
4d6a8e063a
commit
2bca354029
5 changed files with 7 additions and 6 deletions
|
@ -66,7 +66,7 @@ if (PCB STREQUAL X10)
|
|||
set(HARDWARE_TOUCH YES)
|
||||
set(USB_CHARGER YES)
|
||||
set(DEFAULT_THEME "DARKBLUE")
|
||||
set(SBUS ON)
|
||||
set(SBUS_TRAINER ON)
|
||||
set(AUX_SERIAL ON)
|
||||
if (NOT BLUETOOTH AND NOT INTERNAL_GPS)
|
||||
set(AUX2_SERIAL ON)
|
||||
|
@ -255,8 +255,8 @@ if (AUX2_SERIAL)
|
|||
set(AUX_SERIAL_DRIVER ../common/arm/stm32/aux_serial_driver.cpp)
|
||||
endif()
|
||||
|
||||
if (SBUS)
|
||||
add_definitions(-DSBUS)
|
||||
if (SBUS_TRAINER)
|
||||
add_definitions(-DSBUS_TRAINER)
|
||||
set(SRC
|
||||
${SRC}
|
||||
sbus.cpp
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "opentx.h"
|
||||
|
||||
#if defined(SBUS)
|
||||
#if defined(SBUS_TRAINER)
|
||||
Fifo<uint8_t, 32> trainerSbusFifo;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -335,6 +335,7 @@ endif()
|
|||
|
||||
add_definitions(-DPCBTARANIS)
|
||||
add_definitions(-DAUDIO -DVOICE -DRTCLOCK)
|
||||
add_definitions(-DSBUS_TRAINER)
|
||||
|
||||
set(SRC
|
||||
${SRC}
|
||||
|
|
|
@ -329,7 +329,7 @@ void stop_trainer_module_sbus()
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(SBUS)
|
||||
#if defined(SBUS_TRAINER)
|
||||
int sbusGetByte(uint8_t * byte)
|
||||
{
|
||||
switch (currentTrainerMode) {
|
||||
|
|
|
@ -107,7 +107,7 @@ TASK_FUNCTION(mixerTask)
|
|||
s_pulses_paused = true;
|
||||
|
||||
while (true) {
|
||||
#if defined(SBUS) && !defined(PCBSKY9X)
|
||||
#if defined(SBUS_TRAINER)
|
||||
// SBUS trainer
|
||||
processSbusInput();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue