Correct the json keyword
Keyword "bind" has been changed to "devAddress"
as some of the files like gpioMonitor uses "devAddress" to get the
device address and use it for binding/unbinding.
Also, we use this address for binding/unbinding both, so devAddress
would be appropriate name for the keyword.
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I7e8b36a8c077f0916c3223d1b651d6cd0d0f3bfa
diff --git a/ibm_vpd_app.cpp b/ibm_vpd_app.cpp
index adf68f0..feacc38 100644
--- a/ibm_vpd_app.cpp
+++ b/ibm_vpd_app.cpp
@@ -454,7 +454,7 @@
}
// Now bind the device
- string bind = json["frus"][file].at(0).value("bind", "");
+ string bind = json["frus"][file].at(0).value("devAddress", "");
cout << "Binding device " << bind << endl;
string bindCmd = string("echo \"") + bind +
string("\" > /sys/bus/i2c/drivers/at24/bind");