mirror of
https://github.com/gunner47/GyverLamp.git
synced 2025-08-08 09:20:59 +03:00
Исправлены ошибки режима Избранное и эффекта "Белый свет"; Оптимизация использования памяти
This commit is contained in:
@@ -90,7 +90,7 @@ class FavoritesManager
|
||||
nextModeAt = getNexTime();
|
||||
|
||||
#ifdef GENERAL_DEBUG
|
||||
Serial.printf("Переключение на следующий избранный режим: %d\n\n", (*currentMode));
|
||||
Serial.printf_P(PSTR("Переключение на следующий избранный режим: %d\n\n"), (*currentMode));
|
||||
#endif
|
||||
|
||||
return true;
|
||||
@@ -136,7 +136,7 @@ class FavoritesManager
|
||||
|
||||
static bool isStatusTextCorrect(const char* statusText) // валидирует statusText (проверяет, правильное ли коичество компонентов он содержит)
|
||||
{
|
||||
char buff[128];
|
||||
char buff[MAX_UDP_BUFFER_SIZE];
|
||||
strcpy(buff, statusText);
|
||||
|
||||
uint8_t lexCount = 0;
|
||||
@@ -208,7 +208,7 @@ class FavoritesManager
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const uint8_t buffSize = 128;
|
||||
const uint8_t buffSize = MAX_UDP_BUFFER_SIZE;
|
||||
char buff[buffSize];
|
||||
memset(buff, 0, buffSize);
|
||||
strcpy(buff, statusText);
|
||||
|
Reference in New Issue
Block a user