Limit to TX16S only.

This commit is contained in:
rotorman
2022-04-19 12:53:45 +02:00
parent ea24d0fb1e
commit 084da41dc9
2 changed files with 7 additions and 0 deletions
@@ -236,6 +236,7 @@ class SerialConfigWindow : public FormGroup
[=](int value) { return isSerialModeAvailable(port_nr, value); });
grid.nextLine();
#if defined(SWSERIALPOWER)
if (port_nr < SP_VCP)
{
new StaticText(this, grid.getLabelSlot(true), "Port power:", 0, COLOR_THEME_PRIMARY1);
@@ -250,6 +251,7 @@ class SerialConfigWindow : public FormGroup
grid.nextLine();
}
}
#endif
if (display_ttl_warning) {
new StaticText(this, grid.getFieldSlot(), STR_TTL_WARNING, 0,
+5
View File
@@ -99,6 +99,7 @@ if (PCB STREQUAL X10)
option(BLUETOOTH "Support for bluetooth module" OFF)
option(INTERNAL_GPS "Support for internal ublox GPS" ON)
set(HARDWARE_TOUCH YES)
set(SWSERIALPOWER YES)
set(USB_CHARGER YES)
set(DEFAULT_THEME "DARKBLUE")
add_definitions(-DMANUFACTURER_RADIOMASTER)
@@ -232,6 +233,10 @@ if(HARDWARE_TOUCH)
set(SOFTWARE_KEYBOARD ON)
endif()
if(SWSERIALPOWER)
add_definitions(-DSWSERIALPOWER)
endif()
if(USB_CHARGER)
set(FIRMWARE_TARGET_SRC ${FIRMWARE_TARGET_SRC} usb_charger_driver.cpp)
add_definitions(-DUSB_CHARGER)