summaryrefslogtreecommitdiffstats
path: root/lib/vehicle-signals/vehicle_status_provider.dart
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2024-08-15 15:50:02 -0400
committerScott Murray <scott.murray@konsulko.com>2024-08-15 15:53:41 -0400
commit4a6dd91a1e1c7821eae1668449885a8c04825071 (patch)
treedcf229f0c4224065a8f47a886a740fc3538e4e43 /lib/vehicle-signals/vehicle_status_provider.dart
parent5bd594ae8ad92e8e74966c4ad87df83ec8088c2d (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: I22bd80817088a67a2f62dab129920e19c949846a Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'lib/vehicle-signals/vehicle_status_provider.dart')
-rw-r--r--lib/vehicle-signals/vehicle_status_provider.dart6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vehicle-signals/vehicle_status_provider.dart b/lib/vehicle-signals/vehicle_status_provider.dart
index 0c53b2d..da593cb 100644
--- a/lib/vehicle-signals/vehicle_status_provider.dart
+++ b/lib/vehicle-signals/vehicle_status_provider.dart
@@ -40,7 +40,7 @@ class VehicleStatus {
});
final double speed;
- final double rpm;
+ final int rpm;
final double fuelLevel;
final double coolantTemp;
final double cruiseControlSpeed;
@@ -73,7 +73,7 @@ class VehicleStatus {
VehicleStatus copyWith({
double? speed,
- double? rpm,
+ int? rpm,
double? fuelLevel,
double? coolantTemp,
bool? isLeftIndicator,
@@ -182,7 +182,7 @@ class VehicleStatusNotifier extends StateNotifier<VehicleStatus> {
);
void update({
double? speed,
- double? rpm,
+ int? rpm,
double? fuelLevel,
double? coolantTemp,
bool? isLeftIndicator,