Index: firmware/App/Controllers/DialysateFlow.c =================================================================== diff -u -r025612ad77fe630889a364586de54bffe5262d56 -r986abcfcf047822cad1a10c1ee0924a80dd5f512 --- firmware/App/Controllers/DialysateFlow.c (.../DialysateFlow.c) (revision 025612ad77fe630889a364586de54bffe5262d56) +++ firmware/App/Controllers/DialysateFlow.c (.../DialysateFlow.c) (revision 986abcfcf047822cad1a10c1ee0924a80dd5f512) @@ -40,10 +40,11 @@ #define DIALYSATE_FLOW_ADC_TO_LPM_FACTOR 300 ///< Conversion factor from pulse period (2us units) to flow rate (L/min) for dialysate flow rate (divide this by pulse period). #define FLOW_OUT_OF_RANGE_PERSISTENT_INTERVAL ( 12 * MS_PER_SECOND ) ///< Flow out of range time out in counts. +#define DATA_PUBLISH_COUNTER_START_COUNT 20 ///< Data publish counter start count. // ********** private data ********** -static U32 dialysateFlowDataPublicationTimerCounter = 0; ///< Used to schedule Dialysate flow data publication to CAN bus. +static U32 dialysateFlowDataPublicationTimerCounter; ///< Used to schedule Dialysate flow data publication to CAN bus. static OVERRIDE_U32_T dialysateFlowDataPublishInterval = { DIALYSATE_FLOW_DATA_PUB_INTERVAL, DIALYSATE_FLOW_DATA_PUB_INTERVAL, @@ -74,7 +75,7 @@ // Initialize the variables measuredFlowReadingsSum = 0; flowFilterCounter = 0; - dialysateFlowDataPublicationTimerCounter = 0; + dialysateFlowDataPublicationTimerCounter = DATA_PUBLISH_COUNTER_START_COUNT; } /*********************************************************************//**