main/automation.c

changeset 26
373a33699605
parent 24
bb3d6e22e78b
child 27
e82484ef9d12
equal deleted inserted replaced
25:79ee940410de 26:373a33699605
917 Resume = false; 917 Resume = false;
918 if (NewMinute) { 918 if (NewMinute) {
919 if ((runtime.HopAddition < recipe.Additions) && (TimeLeft <= ((recipe.Addition[runtime.HopAddition].Time * 60) + 60))) { 919 if ((runtime.HopAddition < recipe.Additions) && (TimeLeft <= ((recipe.Addition[runtime.HopAddition].Time * 60) + 60))) {
920 ESP_LOGI(TAG, "Hop addition %d at %d minutes", runtime.HopAddition + 1, recipe.Addition[runtime.HopAddition].Time); 920 ESP_LOGI(TAG, "Hop addition %d at %d minutes", runtime.HopAddition + 1, recipe.Addition[runtime.HopAddition].Time);
921 TopMessage(recipe.Addition[runtime.HopAddition].Name); 921 TopMessage(recipe.Addition[runtime.HopAddition].Name);
922 sprintf(logline, "Hopgift %d %s", runtime.HopAddition + 1, recipe.Addition[runtime.HopAddition].Name); 922 log_annotation(ANNOTATION_EVENT, recipe.Addition[runtime.HopAddition].Name);
923 log_annotation(ANNOTATION_EVENT, logline);
924 SoundPlay(SOUND_AddHop); 923 SoundPlay(SOUND_AddHop);
925 runtime.HopAddition++; 924 runtime.HopAddition++;
926 } else { 925 } else {
927 TopMessage("Koken"); 926 TopMessage("Koken");
928 } 927 }

mercurial