# HG changeset patch # User Michiel Broek # Date 1540728646 -3600 # Node ID 373a3369960511ed11011a8ab5fa93d3f43196c9 # Parent 79ee940410ded706f080d444f1c8c25adddd7ba2 Graph title includes beer code. Hop additions now only display the additions themselfes. diff -r 79ee940410de -r 373a33699605 main/automation.c --- a/main/automation.c Sat Oct 27 19:25:28 2018 +0200 +++ b/main/automation.c Sun Oct 28 13:10:46 2018 +0100 @@ -919,8 +919,7 @@ if ((runtime.HopAddition < recipe.Additions) && (TimeLeft <= ((recipe.Addition[runtime.HopAddition].Time * 60) + 60))) { ESP_LOGI(TAG, "Hop addition %d at %d minutes", runtime.HopAddition + 1, recipe.Addition[runtime.HopAddition].Time); TopMessage(recipe.Addition[runtime.HopAddition].Name); - sprintf(logline, "Hopgift %d %s", runtime.HopAddition + 1, recipe.Addition[runtime.HopAddition].Name); - log_annotation(ANNOTATION_EVENT, logline); + log_annotation(ANNOTATION_EVENT, recipe.Addition[runtime.HopAddition].Name); SoundPlay(SOUND_AddHop); runtime.HopAddition++; } else { diff -r 79ee940410de -r 373a33699605 main/task_sdcard.c --- a/main/task_sdcard.c Sat Oct 27 19:25:28 2018 +0200 +++ b/main/task_sdcard.c Sun Oct 28 13:10:46 2018 +0100 @@ -105,7 +105,7 @@ strftime(strftime_buf, sizeof(strftime_buf), "%c", &timeinfo); fprintf(f, "{\n"); fprintf(f, " \"brew\": [{\n"); - fprintf(f, " \"Recipe\":\"%s\",\n", recipe.Name); + fprintf(f, " \"Recipe\":\"%s %s\",\n", recipe.Code, recipe.Name); fprintf(f, " \"Date\":\"%s\",\n", strftime_buf); fprintf(f, " \"brewdata\":[\n"); addcomma = false;