fix: Added CN/TW translations, reduced TW text size to fit firmware, TX16 BOR tweak (#1776)

* Added CN/TW translation and reduced TW text size

Added CN/TW translation and reduced TW text size.
Because the TW text causes the firmware to exceed the flash size, reduce the text size.

* Modify the STM32 BOR level on TX16S to avoid system failure in extreme cases

Modify the STM32 BOR level on TX16S to avoid system failure in extreme cases.

* Update cn.h.txt

* Update tw.h.txt
This commit is contained in:
zyren
2022-04-01 10:46:09 +10:00
committed by GitHub
parent dbb9a5e4b2
commit 8a988b7f88
5 changed files with 63 additions and 38 deletions
+4
View File
@@ -106,6 +106,10 @@ if (PCB STREQUAL X10)
set(AUX2_SERIAL ON)
endif()
set(INTERNAL_GPS_BAUDRATE "9600" CACHE STRING "Baud rate for internal GPS")
set(FIRMWARE_TARGET_SRC
${FIRMWARE_TARGET_SRC}
../../thirdparty/STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_flash.c
)
elseif (PCBREV STREQUAL T18)
set(FLAVOUR t18)
set(LUA_EXPORT lua_export_t16)
+11
View File
@@ -159,6 +159,17 @@ void boardInit()
BACKLIGHT_RCC_APB2Periph,
ENABLE);
#if defined(RADIO_TX16S)
if (FLASH_OB_GetBOR() != OB_BOR_LEVEL3)
{
FLASH_OB_Unlock();
FLASH_OB_BORConfig(OB_BOR_LEVEL3);
FLASH_OB_Launch();
FLASH_OB_Lock();
}
#endif
pwrInit();
pwrOn();
delaysInit();