mirror of
https://github.com/gunner47/GyverLamp.git
synced 2025-08-08 09:20:59 +03:00
Добавлена блокировка кнопки на лампе из android приложения
This commit is contained in:
@@ -6,6 +6,11 @@ static bool startButtonHolding = false; // флаг: кно
|
||||
|
||||
void buttonTick()
|
||||
{
|
||||
if (!buttonEnabled) // события кнопки не обрабатываются, если она заблокирована
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
touch.tick();
|
||||
uint8_t clickCount = touch.hasClicks() ? touch.getClicks() : 0U;
|
||||
|
||||
|
Reference in New Issue
Block a user