From e438bd358b52470b62afb6af0a08c76c7a40e58f Mon Sep 17 00:00:00 2001 From: Tyler Trephan Date: Thu, 21 Apr 2022 20:30:17 +0000 Subject: [PATCH] Added min/max rates for EV_CHARGE_TIME_REMAINING Test: atest CarPropertyManagerTest Bug: 229118601 Change-Id: I6adedf1def47486ebe3cf9d12abe2bd65e0d6d48 --- .../vehicle/aidl/impl/default_config/include/DefaultConfig.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h index 4d96fd38ae..5a579f1e5e 100644 --- a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h +++ b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h @@ -326,6 +326,8 @@ const std::vector kVehicleProperties = { .prop = toInt(VehicleProperty::EV_CHARGE_TIME_REMAINING), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::CONTINUOUS, + .minSampleRate = 1.0f, + .maxSampleRate = 10.0f, }, .initialValue = {.int32Values = {20}}},