summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_regular/src
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2018-07-10 10:02:21 -0400
committerGitHub <noreply@github.com>2018-07-10 10:02:21 -0400
commitb7da3b5378c7367ce373b43d278a1831f3580cf0 (patch)
tree677e96509952b382b0f3c5db98187bfd6d0c6535 /src/components/policy/policy_regular/src
parentf80e75e030ab3e628c5202e2ed84095ebb861856 (diff)
parent1d72721a598bb64c51c4e5e76becba3acc7fad53 (diff)
downloadsdl_core-b7da3b5378c7367ce373b43d278a1831f3580cf0.tar.gz
Merge pull request #2291 from smartdevicelink/feature/new_vehicle_data_EPB_status
Feature/new vehicle data epb status
Diffstat (limited to 'src/components/policy/policy_regular/src')
-rw-r--r--src/components/policy/policy_regular/src/policy_table/enums.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/policy/policy_regular/src/policy_table/enums.cc b/src/components/policy/policy_regular/src/policy_table/enums.cc
index e05ed8f064..6768fc50e2 100644
--- a/src/components/policy/policy_regular/src/policy_table/enums.cc
+++ b/src/components/policy/policy_regular/src/policy_table/enums.cc
@@ -143,6 +143,8 @@ bool IsValidEnum(Parameter val) {
return true;
case P_BELTSTATUS:
return true;
+ case P_ELECTRONICPARKBRAKESTATUS:
+ return true;
case P_DRIVERBRAKING:
return true;
case P_PRNDL:
@@ -207,6 +209,8 @@ const char* EnumToJsonString(Parameter val) {
return "accPedalPosition";
case P_BELTSTATUS:
return "beltStatus";
+ case P_ELECTRONICPARKBRAKESTATUS:
+ return "electronicParkBrakeStatus";
case P_DRIVERBRAKING:
return "driverBraking";
case P_PRNDL:
@@ -287,6 +291,9 @@ bool EnumFromJsonString(const std::string& literal, Parameter* result) {
} else if ("beltStatus" == literal) {
*result = P_BELTSTATUS;
return true;
+ } else if ("electronicParkBrakeStatus" == literal) {
+ *result = P_ELECTRONICPARKBRAKESTATUS;
+ return true;
} else if ("driverBraking" == literal) {
*result = P_DRIVERBRAKING;
return true;