Добавлен комментарий

This commit is contained in:
gunner47
2019-10-14 16:53:34 +03:00
parent a09da9b3ed
commit 3002638a7d

View File

@@ -130,7 +130,7 @@ void printTime(uint32_t thisTime, bool onDemand) // периодич
if ((needToPrint && thisTime != lastTimePrinted) || onDemand)
{
lastTimePrinted = thisTime;
char stringTime[10U];
char stringTime[10U]; // буффер для выводимого текста, его длина должна быть НЕ МЕНЬШЕ, чем длина текста + 1
sprintf_P(stringTime, PSTR("-> %u:%02u"), (uint8_t)((thisTime - thisTime % 60U) / 60U), (uint8_t)(thisTime % 60U));
loadingFlag = true;
FastLED.setBrightness(modes[currentMode].Brightness);