mirror of
https://github.com/gunner47/GyverLamp.git
synced 2025-08-08 09:20:59 +03:00
Добавлен вызов режима обновления модуля esp из android приложения; Исправлены ошибки
This commit is contained in:
@@ -46,6 +46,10 @@ class FavoritesManager
|
||||
static void ConfigureFavorites(const char* statusText) // принимает statusText, парсит его и инициализирует свойства класса значениями из statusText'а
|
||||
{
|
||||
FavoritesRunning = getFavoritesRunning(statusText);
|
||||
if (!FavoritesRunning)
|
||||
{
|
||||
nextModeAt = 0;
|
||||
}
|
||||
Interval = getInterval(statusText);
|
||||
Dispersion = getDispersion(statusText);
|
||||
for (uint8_t i = 0; i < MODE_AMOUNT; i++)
|
||||
@@ -121,6 +125,12 @@ class FavoritesManager
|
||||
EEPROM.commit();
|
||||
}
|
||||
|
||||
static void TurnFavoritesOff()
|
||||
{
|
||||
FavoritesRunning = false;
|
||||
nextModeAt = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
static uint32_t nextModeAt; // ближайшее время переключения на следующий избранный эффект (millis())
|
||||
|
||||
|
Reference in New Issue
Block a user