We waited for inputs stabilization on all radios in 2.2
This commit is contained in:
@@ -210,14 +210,12 @@ int main()
|
||||
pwrInit();
|
||||
keysInit();
|
||||
|
||||
#if defined(BOOTLOADER_WAIT_BEFORE_READ_TRIMS)
|
||||
// wait a bit for the inputs to stabilize...
|
||||
if (!WAS_RESET_BY_WATCHDOG_OR_SOFTWARE()) {
|
||||
for (uint32_t i = 0; i < 150000; i++) {
|
||||
__ASM volatile ("nop");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// LHR & RHL trims not pressed simultanously
|
||||
if (readTrims() != BOOTLOADER_KEYS) {
|
||||
|
||||
@@ -140,8 +140,6 @@
|
||||
#define SWITCHES_GPIO_PIN_J GPIO_Pin_0 // PB.00
|
||||
#endif
|
||||
|
||||
#define BOOTLOADER_WAIT_BEFORE_READ_TRIMS
|
||||
|
||||
// Trims
|
||||
#if defined(PCBX12S)
|
||||
#define TRIMS_GPIO_REG_RHL GPIOC->IDR
|
||||
|
||||
@@ -228,7 +228,6 @@
|
||||
#define TRIMS_GPIO_REG_RHL GPIOD->IDR
|
||||
#define TRIMS_GPIO_PIN_RHL GPIO_Pin_9 // PD.09
|
||||
#elif defined(PCBX9DP) && PCBREV >= 2019
|
||||
#define BOOTLOADER_WAIT_BEFORE_READ_TRIMS
|
||||
#define TRIMS_GPIO_REG_LHL GPIOE->IDR
|
||||
#define TRIMS_GPIO_PIN_LHL GPIO_Pin_3 // PE.03
|
||||
#define TRIMS_GPIO_REG_LHR GPIOE->IDR
|
||||
|
||||
Reference in New Issue
Block a user