Skip to content

Commit

Permalink
Fixed trip computer change
Browse files Browse the repository at this point in the history
  • Loading branch information
morcibacsi committed Jul 21, 2021
1 parent 1cde4b1 commit 4c0ba71
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions PSAVanCanBridge/src/Can/Handlers/CanTripInfoHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class CanTripInfoHandler
{
const int CAN_TRIP_INTERVAL = 333;
const int CAN_TRIP_SEND_COUNT = 5;
const int CAN_TRIP_SEND_COUNT = 10;

AbstractCanMessageSender *canMessageSender;

Expand Down Expand Up @@ -87,7 +87,14 @@ class CanTripInfoHandler
messageSentCount++;
vTaskDelay(5 / portTICK_PERIOD_MS);
}
SendCanTripInfo0(FuelLeftToPump, FuelConsumption, Speed, 0);
messageSentCount = 0;
while (messageSentCount < CAN_TRIP_SEND_COUNT)
{
SendCanTripInfo0(FuelLeftToPump, FuelConsumption, Speed, 0);

messageSentCount++;
vTaskDelay(5 / portTICK_PERIOD_MS);
}
TripButtonPressed = 0;
IsSendingEnabled = 1;
}
Expand Down

0 comments on commit 4c0ba71

Please sign in to comment.