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
+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();