Index: firmware/App/Modes/TreatmentRecirc.c =================================================================== diff -u -r3969e8aaa110f89c8fa67553517498627be84c66 -re4cc37257141c5227186ac6d8ca3d6c87d009042 --- firmware/App/Modes/TreatmentRecirc.c (.../TreatmentRecirc.c) (revision 3969e8aaa110f89c8fa67553517498627be84c66) +++ firmware/App/Modes/TreatmentRecirc.c (.../TreatmentRecirc.c) (revision e4cc37257141c5227186ac6d8ca3d6c87d009042) @@ -477,11 +477,13 @@ { if ( ++recircPublishTimerCtr >= RECIRC_DATA_PUBLISH_INTERVAL ) { - U32 timeout = RECIRC_TIMEOUT / ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ); - U32 countdown = ( recircTimerCtr >= RECIRC_TIMEOUT ? 0 : ( RECIRC_TIMEOUT - recircTimerCtr ) / ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ); + TREATMENT_RECIRC_PAYLOAD_T data; + data.timeout = RECIRC_TIMEOUT / ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ); + data.countdown = ( recircTimerCtr >= RECIRC_TIMEOUT ? 0 : ( RECIRC_TIMEOUT - recircTimerCtr ) / ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ); + recircPublishTimerCtr = 0; - broadcastRecircData( timeout, countdown ); + broadcastData( MSG_ID_HD_RECIRC_PROGRESS, COMM_BUFFER_OUT_CAN_HD_BROADCAST, (U08*)&data, sizeof( TREATMENT_RECIRC_PAYLOAD_T ) ); } }