From 771d7470b22e83b1f2bc8df6b37c459abb8b5c40 Mon Sep 17 00:00:00 2001 From: dan-du-car Date: Tue, 30 Apr 2024 15:15:54 -0400 Subject: [PATCH] fix --- src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp b/src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp index c35fd24df..326be83e8 100644 --- a/src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp +++ b/src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp @@ -72,7 +72,7 @@ void CARMACloudPlugin::HandleCARMARequest(tsm4Message &msg, routeable_message &r long lat = carmaRequest->body.choice.tcrV01.bounds.list.array[cnt]->reflat; long longg = carmaRequest->body.choice.tcrV01.bounds.list.array[cnt]->reflon; - auto oldest = std::max(tm, 0); // Replace tm with 0 if negative + auto oldest = std::max(oldestInMins, 0); // Replace tm with 0 if negative long dtx0 = carmaRequest->body.choice.tcrV01.bounds.list.array[cnt]->offsets.list.array[0]->deltax; long dty0 = carmaRequest->body.choice.tcrV01.bounds.list.array[cnt]->offsets.list.array[0]->deltay;