fix(x10): wrong PCB detected with touch screen mod (#6108)
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
committed by
Peter Feerick
co-authored by
Peter Feerick
parent
b8d55c28e6
commit
de93e27959
@@ -70,14 +70,10 @@ void pwrInit()
|
||||
hardwareOptions.pcbrev = PCBREV_VALUE();
|
||||
#elif defined(PCBREV_GPIO_1) && defined(PCBREV_GPIO_2)
|
||||
gpio_init(PCBREV_GPIO_1, GPIO_IN_PU, GPIO_PIN_SPEED_LOW);
|
||||
gpio_init(PCBREV_GPIO_2, GPIO_IN_PU, GPIO_PIN_SPEED_LOW);
|
||||
#if defined(PCBREV_TOUCH_GPIO)
|
||||
#if defined(PCBREV_TOUCH_GPIO_PULL_UP)
|
||||
gpio_init(PCBREV_GPIO_2, GPIO_IN_PU, GPIO_PIN_SPEED_LOW);
|
||||
#else
|
||||
gpio_init(PCBREV_TOUCH_GPIO, GPIO_IN_PD, GPIO_PIN_SPEED_LOW);
|
||||
#endif
|
||||
gpio_init(PCBREV_TOUCH_GPIO, PCBREV_TOUCH_PULL_TYPE, GPIO_PIN_SPEED_LOW);
|
||||
#endif
|
||||
|
||||
hardwareOptions.pcbrev = PCBREV_VALUE();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user