changes to make firmware interop on all hw models

This commit is contained in:
Conor Patrick
2019-05-09 16:01:07 -04:00
parent 4ac61f7f18
commit 84740f3d6a
9 changed files with 38 additions and 19 deletions

View File

@ -119,7 +119,9 @@ uint32_t tsc_read_button(uint32_t index)
int tsc_sensor_exists()
{
int does;
static uint8_t does = 0;
if (does) return 1;
LL_GPIO_SetPinMode(GPIOB, (1 << 1), LL_GPIO_MODE_INPUT);
LL_GPIO_SetPinPull(GPIOB, (1 << 1), LL_GPIO_PULL_UP);