Добавлена блокировка кнопки на лампе из android приложения

This commit is contained in:
gunner47
2019-10-20 20:38:08 +03:00
parent ec679047bf
commit 772d2b50d4
8 changed files with 59 additions and 8 deletions

View File

@@ -6,6 +6,11 @@ static bool startButtonHolding = false; // флаг: кно
void buttonTick()
{
if (!buttonEnabled) // события кнопки не обрабатываются, если она заблокирована
{
return;
}
touch.tick();
uint8_t clickCount = touch.hasClicks() ? touch.getClicks() : 0U;