diff -r bac0a860f5dd -r 24cb415af787 main/recipes.c --- a/main/recipes.c Mon May 17 22:38:43 2021 +0200 +++ b/main/recipes.c Tue May 18 16:52:23 2021 +0200 @@ -150,6 +150,8 @@ strncat(recipe.Name, char_data_buffer, 127); } else if ((_xml_depth == 3) && (strcmp("BOIL_TIME", _xml_element[2]) == 0)) { recipe.BoilTime = atoi(char_data_buffer); + } else if ((_xml_depth == 3) && (strcmp("BMS_COOLING_TO", _xml_element[2]) == 0)) { + recipe.CoolTemp = atoi(char_data_buffer); } else if ((_xml_depth == 5) && (strcmp("HOPS", _xml_element[2]) == 0) && (strcmp("HOP", _xml_element[3]) == 0)) { /* * Hops that are added during the boil. @@ -333,6 +335,7 @@ int done; _xml_depth = 0; _xml_tun_temp = 0.0; + recipe.CoolTemp = 20.0; XML_SetElementHandler(parser, startElement, endElement); XML_SetCharacterDataHandler(parser, char_data); @@ -363,7 +366,6 @@ break; } } - recipe.CoolTemp = 20.0; #if 0 printf("Recipe: %s\n", recipe.Name);