main/recipes.c

changeset 116
bafc2d6a0790
parent 114
1413c4c5cd8c
child 121
30aca5888d2b
equal deleted inserted replaced
115:8a67450424b7 116:bafc2d6a0790
309 * Fix problems created by Brewfather and possible others that say that 309 * Fix problems created by Brewfather and possible others that say that
310 * the first mash step is a temperature step. It just isn't. 310 * the first mash step is a temperature step. It just isn't.
311 */ 311 */
312 if (_xml_add_type == MASHTYPE_TEMPERATURE && recipe.Mashsteps == 0) { 312 if (_xml_add_type == MASHTYPE_TEMPERATURE && recipe.Mashsteps == 0) {
313 _xml_add_type = MASHTYPE_INFUSION; 313 _xml_add_type = MASHTYPE_INFUSION;
314 _xml_add_infusion = _xml_add_temp + 1.25; 314 // _xml_add_infusion = _xml_add_temp + 1.25;
315 recipe.MashStep[recipe.Mashsteps].Ramp_time = 1; 315 recipe.MashStep[recipe.Mashsteps].Ramp_time = 1;
316 } 316 }
317 recipe.MashStep[recipe.Mashsteps].Type = _xml_add_type; 317 recipe.MashStep[recipe.Mashsteps].Type = _xml_add_type;
318 if (_xml_add_ramp == 0 && recipe.Mashsteps) { 318 if (_xml_add_ramp == 0 && recipe.Mashsteps) {
319 recipe.MashStep[recipe.Mashsteps].Ramp_time = (uint16_t)(_xml_add_temp - recipe.MashStep[recipe.Mashsteps - 1].End_temp) + 1; 319 recipe.MashStep[recipe.Mashsteps].Ramp_time = (uint16_t)(_xml_add_temp - recipe.MashStep[recipe.Mashsteps - 1].End_temp) + 1;
320 } 320 }
321 if (_xml_add_type == MASHTYPE_INFUSION) { 321 if (_xml_add_type == MASHTYPE_INFUSION) {
322 recipe.MashStep[recipe.Mashsteps].Infuse_temp = _xml_add_infusion; 322 if (recipe.Mashsteps == 0 && _xml_add_infusion < _xml_add_temp) {
323 recipe.MashStep[recipe.Mashsteps].Infuse_temp = _xml_add_temp + 1.25;
324 } else {
325 recipe.MashStep[recipe.Mashsteps].Infuse_temp = _xml_add_infusion;
326 }
323 recipe.MashStep[recipe.Mashsteps].Infuse_amount = _xml_add_amount; 327 recipe.MashStep[recipe.Mashsteps].Infuse_amount = _xml_add_amount;
324 } else if (_xml_add_type == MASHTYPE_DECOCTION) { 328 } else if (_xml_add_type == MASHTYPE_DECOCTION) {
325 recipe.MashStep[recipe.Mashsteps].Infuse_temp = 98.0; 329 recipe.MashStep[recipe.Mashsteps].Infuse_temp = 98.0;
326 recipe.MashStep[recipe.Mashsteps].Infuse_amount = _xml_add_amount; 330 recipe.MashStep[recipe.Mashsteps].Infuse_amount = _xml_add_amount;
327 } else { 331 } else {

mercurial