From e92d2b76bbc823b92fcc1b47d6ca125838f4f99d Mon Sep 17 00:00:00 2001 From: emanuel Date: Mon, 21 Nov 2022 15:18:29 +0000 Subject: [PATCH] VCM: reset timer on req/reps sent --- src/vcm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vcm.c b/src/vcm.c index ed5e53e..5f8c580 100644 --- a/src/vcm.c +++ b/src/vcm.c @@ -246,6 +246,8 @@ static int vcm_check_handle_request(VCM_t* vcm, mc_neighbour_s* neighbour) { itss_queue_send(facilities.tx_queue, buf1, enc.encoded+1, ITSS_APPLICATIONS, bpr->id, "FI.message"); + coordination->t_last_send_vcm = now; + if (facilities.logging.recorder) { uint16_t buffer_len = 2048; uint8_t buffer[buffer_len]; @@ -541,6 +543,8 @@ static int intersection_detected(VCM_t* vcm, mc_neighbour_s* neighbour) { itss_queue_send(facilities.tx_queue, buf, enc.encoded+1, ITSS_APPLICATIONS, bpr->id, "FI.message"); + coordination->t_last_send_vcm = now; + if (facilities.logging.recorder) { uint16_t buffer_len = 2048; uint8_t buffer[buffer_len];