fixes in lock button

remotes/github/master
Ondřej Hruška 7 years ago
parent 2e2dab9244
commit d1f8804a93
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 6
      platform/lock_jumper.c

@ -42,7 +42,11 @@ void LockJumper_Init(void)
LL_GPIO_SetPinPull(lock_periph, lock_llpin, LL_GPIO_PULL_UP); LL_GPIO_SetPinPull(lock_periph, lock_llpin, LL_GPIO_PULL_UP);
#endif #endif
SystemSettings.editable = PLAT_LOCK_1CLOSED == LL_GPIO_IsInputPinSet(lock_periph, lock_llpin); #if PLAT_LOCK_BTN
SystemSettings.editable = false;
#else
SystemSettings.editable = (PLAT_LOCK_1CLOSED != LL_GPIO_IsInputPinSet(lock_periph, lock_llpin));
#endif
dbg("Settings editable? %d", SystemSettings.editable); dbg("Settings editable? %d", SystemSettings.editable);
} }

Loading…
Cancel
Save