| commit | 0d77167f5c8093f3f8835515063f83509acba607 | [log] [tgz] |
|---|---|---|
| author | Enrico Granata <egranata@google.com> | Thu Apr 13 17:29:07 2017 -0700 |
| committer | Enrico Granata <egranata@google.com> | Fri Apr 14 00:54:28 2017 +0000 |
| tree | 69f70664f03c4103f325343232131decd0585d47 | |
| parent | 91bb86e57c7b4fcf1ae3879cf6dbd9e08a4083b1 [diff] |
Set the property ID before writing freeze frames This fixes an issue where the default freeze frame data was not seen by the diagnostic manager as it was never correctly stored in the database. Test: manual in KitchenSink Bug: 37327195 Change-Id: Ice33d8571daa52ae758ff2ac9926b6ea0b3a495c
diff --git a/automotive/vehicle/2.1/default/impl/vhal_v2_1/EmulatedVehicleHal.cpp b/automotive/vehicle/2.1/default/impl/vhal_v2_1/EmulatedVehicleHal.cpp index 4dceae0..1d19aa2 100644 --- a/automotive/vehicle/2.1/default/impl/vhal_v2_1/EmulatedVehicleHal.cpp +++ b/automotive/vehicle/2.1/default/impl/vhal_v2_1/EmulatedVehicleHal.cpp
@@ -139,6 +139,8 @@ for (auto&& dtc : sampleDtcs) { auto freezeFrame = createVehiclePropValue(V2_0::VehiclePropertyType::COMPLEX, 0); sensorStore->fillPropValue(dtc, freezeFrame.get()); + freezeFrame->prop = OBD2_FREEZE_FRAME; + mPropStore->writeValue(*freezeFrame); } }