VCM: reset timer on req/reps sent

This commit is contained in:
emanuel 2022-11-21 15:18:29 +00:00
parent 17be2bbd29
commit e92d2b76bb
1 changed files with 4 additions and 0 deletions

View File

@ -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];