Index: NVDataMgmt.c =================================================================== diff -u -r66600859e4fb3036f48901aae8c9845f37e3e707 -r50bec30dd7648c89eb3a46f148b84d368b53e858 --- NVDataMgmt.c (.../NVDataMgmt.c) (revision 66600859e4fb3036f48901aae8c9845f37e3e707) +++ NVDataMgmt.c (.../NVDataMgmt.c) (revision 50bec30dd7648c89eb3a46f148b84d368b53e858) @@ -1356,8 +1356,8 @@ BOOL setWaterConsumption ( U32 liters ) { BOOL status = FALSE; - dgUsageInfoGroup.dgUsageInfo.waterConsumption = liters; - dgUsageInfoGroup.crc = crc16 ( (U08*)&dgUsageInfoGroup.dgUsageInfo.waterConsumption, sizeof(U16) ); + dgUsageInfoGroup.dgUsageInfo.totalROwaterGeneratedL = liters; + dgUsageInfoGroup.crc = crc16 ( (U08*)&dgUsageInfoGroup.dgUsageInfo.totalROwaterGeneratedL, sizeof(U16) ); if ( !isQueueFull() ) { @@ -1378,7 +1378,7 @@ *************************************************************************/ U32 getWaterConsumption ( void ) { - return dgUsageInfoGroup.dgUsageInfo.waterConsumption; + return dgUsageInfoGroup.dgUsageInfo.totalROwaterGeneratedL; } /*********************************************************************//** Index: NVDataMgmtDGRecords.h =================================================================== diff -u -r66600859e4fb3036f48901aae8c9845f37e3e707 -r50bec30dd7648c89eb3a46f148b84d368b53e858 --- NVDataMgmtDGRecords.h (.../NVDataMgmtDGRecords.h) (revision 66600859e4fb3036f48901aae8c9845f37e3e707) +++ NVDataMgmtDGRecords.h (.../NVDataMgmtDGRecords.h) (revision 50bec30dd7648c89eb3a46f148b84d368b53e858) @@ -70,6 +70,7 @@ GET_CAL_PRE_RO_PURGE_VOLUME_RECORD, ///< Get pre RO purge volume record. GET_CAL_FILTERS_RECORD, ///< Get filters record. GET_INF_HEATERS_RECORD, ///< Get heaters information form the the last run. + GET_INF_DG_USAGE_RECORD, ///< Get DG usage record. GET_SYS_RECORD, ///< Get system record. GET_SRV_RECORD, ///< Get service record. GET_SRR_RECORD, ///< Get scheduled runs record. @@ -452,7 +453,8 @@ /// DG usage info structure. typedef struct { - U32 waterConsumption; ///< Water consumption. + U32 roWaterGenTotalL; ///< Total RO water generated in liters. (Cannot be reset) + U32 roWaterGenSinceLastTxL; ///< RO water generated since last treatment in liters. U16 crc; ///< CRC for the DG usage info structure. } DG_USAGE_INFO_RECORD_T;