Skip to content

Commit 27dae2d

Browse files
committed
VW e-Up: T26 acceleration calculation only necessary without OBD
1 parent d096b72 commit 27dae2d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

vehicle/OVMS.V3/components/vehicle_vweup/src/vehicle_vweup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <string>
3030
static const char *TAG = "v-vweup";
3131

32-
#define VERSION "0.22.2"
32+
#define VERSION "0.22.3"
3333

3434
#include <stdio.h>
3535
#include <string>

vehicle/OVMS.V3/components/vehicle_vweup/src/vweup_t26.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ void OvmsVehicleVWeUp::IncomingFrameCan3(CAN_frame_t *p_frame)
391391
case 0x320: // Speed
392392
StandardMetrics.ms_v_pos_speed->SetValue(((d[4] << 8) + d[3] - 1) / 190);
393393
UpdateTripOdo();
394-
CalculateAcceleration(); // only necessary until we find acceleration on T26
394+
if (HasNoOBD())
395+
CalculateAcceleration(); // only necessary until we find acceleration on T26
395396
break;
396397

397398
case 0x527: // Outdoor temperature

0 commit comments

Comments
 (0)