commit | adbe17260a69ea5f7639e9d760830bdcb6996e6c | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Sat May 09 19:20:19 2020 +0800 |
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | Thu Jul 30 07:02:11 2020 -0500 |
tree | 71b7206d2d1b2594feb6258857eaab6315fe736d | |
parent | a929dac17d1c30a18ee6edefa9dfdaf4803c9b2c [diff] [blame] |
Add parsing JSON for State Sensor PDR According to spec DSP0248_1.2.0: 28.6 and sensor_pdr.json, parse JSON and generate PDR structure. Tested with JSON file: https://gist.github.com/lxwinspur/6a40abea7330c25e4d49826e890c4be9 Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I654913b6fa07f34f405f7dd41a5f1ac0ae2706fb
diff --git a/libpldmresponder/pdr_state_effecter.hpp b/libpldmresponder/pdr_state_effecter.hpp index 173d328..9d10d32 100644 --- a/libpldmresponder/pdr_state_effecter.hpp +++ b/libpldmresponder/pdr_state_effecter.hpp
@@ -96,7 +96,7 @@ auto bit = state - (index * 8); bitfield8_t* bf = reinterpret_cast<bitfield8_t*>(start + index); bf->byte |= 1 << bit; - stateValues.emplace_back(std::move(state)); + stateValues.emplace_back(state); } start += possibleStates->possible_states_size;