fix(x10-express): Touch Screen Mod PCBREV check failing in cold temps(#4529)

This commit is contained in:
MRC3742
2024-01-12 11:24:42 +10:00
committed by GitHub
parent 308b53e605
commit 3722de987f
2 changed files with 10 additions and 0 deletions
@@ -70,6 +70,15 @@ void pwrInit()
#endif
GPIO_InitStructure.GPIO_Pin = PCBREV_GPIO_PIN;
GPIO_Init(PCBREV_GPIO, &GPIO_InitStructure);
#if defined(PCBREV_TOUCH_GPIO_PIN)
#if defined(PCBREV_TOUCH_GPIO_PULL_UP)
GPIO_ResetBits(PCBREV_TOUCH_GPIO, PCBREV_TOUCH_GPIO_PIN);
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;
#endif
GPIO_InitStructure.GPIO_Pin = PCBREV_TOUCH_GPIO_PIN;
GPIO_Init(PCBREV_TOUCH_GPIO, &GPIO_InitStructure);
#endif
hardwareOptions.pcbrev = PCBREV_VALUE();
#endif
}