Graph title includes beer code. Hop additions now only display the additions themselfes.

Sun, 28 Oct 2018 13:10:46 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 28 Oct 2018 13:10:46 +0100
changeset 26
373a33699605
parent 25
79ee940410de
child 27
e82484ef9d12

Graph title includes beer code. Hop additions now only display the additions themselfes.

main/automation.c file | annotate | diff | comparison | revisions
main/task_sdcard.c file | annotate | diff | comparison | revisions
--- 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 {
--- 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;

mercurial