fixes in lock button

This commit is contained in:
2018-03-17 17:38:36 +01:00
parent 2e2dab9244
commit d1f8804a93
+5 -1
View File
@@ -42,7 +42,11 @@ void LockJumper_Init(void)
LL_GPIO_SetPinPull(lock_periph, lock_llpin, LL_GPIO_PULL_UP);
#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);
}