summaryrefslogtreecommitdiffstats
path: root/lib/data/data_providers/vehicle_notifier.dart
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2024-08-15 15:54:01 -0400
committerScott Murray <scott.murray@konsulko.com>2024-08-19 13:42:24 +0000
commit1e99e3a52f3d4d81d7cc890630ac591d38f731df (patch)
tree8efe4e7896ba5455f9c7d8b265952ccc66b36009 /lib/data/data_providers/vehicle_notifier.dart
parent6188a4c545e6e6794eba943431ec20108553b98f (diff)
Fix engine speed signal type
Update use of the VSS engine speed (RPM) signal to match the fix done to the AGL VSS overlays to restore the upstream integer data type. Bug-AGL: SPEC-5204 Change-Id: I1993cf291cdc2ca056f4fb2b389ef4eee5558473 Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit 3ef28eeae6e3336232ab13d0d934aa82892dfe74)
Diffstat (limited to 'lib/data/data_providers/vehicle_notifier.dart')
-rw-r--r--lib/data/data_providers/vehicle_notifier.dart6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/data/data_providers/vehicle_notifier.dart b/lib/data/data_providers/vehicle_notifier.dart
index fb2de19..6583f9a 100644
--- a/lib/data/data_providers/vehicle_notifier.dart
+++ b/lib/data/data_providers/vehicle_notifier.dart
@@ -54,8 +54,8 @@ class VehicleNotifier extends Notifier<Vehicle> {
}
break;
case VSSPath.vehicleEngineSpeed:
- if (entry.value.hasFloat()) {
- state = state.copyWith(engineSpeed: entry.value.float);
+ if (entry.value.hasUint32()) {
+ state = state.copyWith(engineSpeed: entry.value.uint32);
}
break;
case VSSPath.vehicleFrontLeftTire:
@@ -274,7 +274,7 @@ class VehicleNotifier extends Notifier<Vehicle> {
var range = state.range;
var psi = state.frontLeftTire;
var actualSpeed = 0.0;
- var actualRpm = 0.0;
+ var actualRpm = 0;
var actualFuelLevel = 0.0;
var actualInsideTemp = 0.0;
var actualOutsideTemp = 0.0;