# HG changeset patch # User Michiel Broek # Date 1449953224 -3600 # Node ID 24a34b7a693dd1a80019ca155221f5965e8a3d0f # Parent 045db83dd013c238917e4c0c67150b74cd87b597 Updated configuration to allow hopstands. diff -r 045db83dd013 -r 24a34b7a693d brewco/brewco.h --- a/brewco/brewco.h Sat Dec 12 21:20:46 2015 +0100 +++ b/brewco/brewco.h Sat Dec 12 21:47:04 2015 +0100 @@ -213,6 +213,16 @@ // A-amilasi 2 60 76 noskip // mash-out 75 80 noskip +typedef struct _hop_stand { + char name[21]; /* Hop stand name */ + int min; /* Minimum temperature */ + int max; /* Maximum temperature */ + int holdtemp; /* Hold temperature at */ + float setpoint; /* Hold temperature setpoint */ + int skip; /* Skip this one */ + int duration; /* Hold time */ +} hop_stand; + typedef struct _hop_addition { char name[21]; /* Hop name */ int boil_duration; /* -1=fwh, 0..boiltime */ @@ -225,6 +235,7 @@ mash_step mash[8]; /* 8 mash steps */ hop_addition hops[10]; /* 10 hop additions */ int boiltime; /* 1..240 minutes */ + hop_stand hopstand[3]; /* 3 hopstand slots */ time_t started; /* Start time */ time_t endtime; /* Ending time */ } a_recipe; @@ -290,12 +301,15 @@ #define STEP_WHIRLPOOL 11 /* Whirlpool */ #define STEP_CLEANUP 12 /* Cleanup */ #define STEP_BREWDONE 13 /* Final step */ +#define STEP_HOPSTAND1 14 /* Hopstand 88..100 */ +#define STEP_HOPSTAND2 15 /* Hopstand 71..77 */ +#define STEP_HOPSTAND3 16 /* Hopstand 60..66 */ -#define MAISH_NA 0 /* Not in any state yet */ -#define MASIH_PROMPT 1 /* Prompt the user */ -#define MAISH_HEATING 2 /* Heating phase */ -#define MAISH_REST 3 /* Rest phase */ -#define MAISH_DONE 4 /* This step is done */ +#define MASH_NA 0 /* Not in any state yet */ +#define MASH_PROMPT 1 /* Prompt the user */ +#define MASH_HEATING 2 /* Heating phase */ +#define MASH_REST 3 /* Rest phase */ +#define MASH_DONE 4 /* This step is done */