--- a/main/config.h Sun Jun 07 22:30:07 2020 +0200 +++ b/main/config.h Wed Jun 10 09:43:51 2020 +0200 @@ -192,13 +192,20 @@ void read_config(void); +#define EQUIPMENT_VERSION 2 ///< Equipment file version /** * @brief Equipment configuration. File /spiffs/equipments.conf */ +struct hdrEquipment { + uint32_t version; ///< Structure version. + uint32_t hdrsize; ///< Size of this header. + uint32_t recsize; ///< Size of a record. +} equipment_hdr; + struct strEquipment { - int Version; ///< Record version number for updates. - int Record; ///< Record number. + int MLT_watt; ///< MLT watts. + int HLT_watt; ///< HLT watts. char Name[32]; ///< Equipment name. int BoilPower; ///< The power percentage needed to keep the wort boiling. int MashPower; ///< The power percentage needed to heat during mash. @@ -303,6 +310,8 @@ uint32_t TimeBrewing; ///< Time we are brewing. uint8_t MashStep; ///< Current mash step. bool MaltAdded; ///< If malt was added. + TickType_t MLT_usage; ///< MLT usage counter. + TickType_t HLT_usage; ///< HLT usage counter. } runtime; ///< Runtime record.