Index: firmware/App/Controllers/Thermistors.c =================================================================== diff -u -r7d4711edd7b40cd3e29f43e766f79a8a09586fe9 -r741339ec2ea3bb95f2ab06d527bb42f30d7f4721 --- firmware/App/Controllers/Thermistors.c (.../Thermistors.c) (revision 7d4711edd7b40cd3e29f43e766f79a8a09586fe9) +++ firmware/App/Controllers/Thermistors.c (.../Thermistors.c) (revision 741339ec2ea3bb95f2ab06d527bb42f30d7f4721) @@ -36,7 +36,7 @@ #define THERMISTORS_DATA_PUBLISH_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Thermistors publish data time interval. #define THERMISTORS_ADC_READ_INTERVAL ( MS_PER_SECOND / ( 2 * TASK_GENERAL_INTERVAL ) ) ///< Thermistors ADC read time interval. -#define ADC_FPGA_READ_DELAY_COUNT 1.0F ///< FGPA read delay upon startup. +#define ADC_FPGA_READ_DELAY_COUNT 1 ///< FPGA read delay upon startup. #define TWELVE_BIT_RESOLUTION 4096U ///< 12 bit resolution conversion. #define TEN_BIT_RESOLUTION 1024U ///< 10 bit resolution conversion. #define THERMISTOR_REFERENCE_VOLTAGE 3.0F ///< Thermistors source voltage. Index: firmware/App/Modes/ModeGenIdle.c =================================================================== diff -u -r75c1e08603496809a6554b7540c9b78a66cb3733 -r741339ec2ea3bb95f2ab06d527bb42f30d7f4721 --- firmware/App/Modes/ModeGenIdle.c (.../ModeGenIdle.c) (revision 75c1e08603496809a6554b7540c9b78a66cb3733) +++ firmware/App/Modes/ModeGenIdle.c (.../ModeGenIdle.c) (revision 741339ec2ea3bb95f2ab06d527bb42f30d7f4721) @@ -54,7 +54,7 @@ // ********** private data ********** -static U32 dataPublishCounter; ///< Used to schedule gen idle data publication to CAN bus. +static U32 dataPublishCounter = 0; ///< Used to schedule gen idle data publication to CAN bus. static DG_GEN_IDLE_MODE_STATE_T genIdleState; ///< Currently active generation idle state. // NOTE: the bad fill state must be initialized here and not in the transition function since in case of a bad fill, the transition function is called // several times to drain and fill and handle a bad fill. Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -rdeb183bbf691b07ae717e3e5e255df62b1bfa0f8 -r741339ec2ea3bb95f2ab06d527bb42f30d7f4721 --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision deb183bbf691b07ae717e3e5e255df62b1bfa0f8) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 741339ec2ea3bb95f2ab06d527bb42f30d7f4721) @@ -24,6 +24,7 @@ #include "ModeChemicalDisinfect.h" #include "ModeFault.h" #include "ModeFill.h" +#include "ModeGenIdle.h" #include "ModeHeatDisinfect.h" #include "ModeStandby.h" #include "NVDataMgmt.h" @@ -149,6 +150,8 @@ // Initialize the reservoirs parameters for another treatment. // This is to make sure the boolean flag for the first fill is set to TRUE. initReservoirs(); + // Clear bad fill flag + setBadAvgConductivityDetectedFlag( FALSE ); // Send DG usage data to HD // The message ID will not be put here because the messages list script will pick this up for another send command