asdf
This commit is contained in:
@@ -1,27 +1,27 @@
|
|||||||
{
|
{
|
||||||
"row":
|
"input" : {
|
||||||
[
|
"row": [
|
||||||
{
|
{
|
||||||
"A": 15
|
"A": 15
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"B": 16
|
"B": 16
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"C": 1
|
"C": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"col" :
|
"col": [
|
||||||
[
|
{
|
||||||
{
|
"A": 4
|
||||||
"A": 4
|
},
|
||||||
},
|
{
|
||||||
{
|
"B": 5
|
||||||
"B": 5
|
},
|
||||||
},
|
{
|
||||||
{
|
"C": 6
|
||||||
"C": 6
|
}
|
||||||
}
|
],
|
||||||
],
|
"data": 13
|
||||||
"data" : 13
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,11 +67,11 @@ void InputGPIOInterface::init_members(std::istream &input_config_stream)
|
|||||||
col_address_B = col_json.at("B").get<json::number_integer_t>();
|
col_address_B = col_json.at("B").get<json::number_integer_t>();
|
||||||
col_address_C = col_json.at("C").get<json::number_integer_t>();
|
col_address_C = col_json.at("C").get<json::number_integer_t>();
|
||||||
|
|
||||||
data_address = input_config.at("data").get<nlohmann::json::number_integer_t>();
|
data_address = input_config.at("data").get<json::number_integer_t>();
|
||||||
} catch (json::type_error& e) {
|
} catch (json::type_error& e) {
|
||||||
CLOG(ERROR, INPUT_LOGGER) << "ERROR";
|
CLOG(ERROR, INPUT_LOGGER) << e.what();
|
||||||
} catch (json::out_of_range& e) {
|
} catch (json::out_of_range& e) {
|
||||||
CLOG(ERROR, INPUT_LOGGER) << "ANOTHER ERROR!";
|
CLOG(ERROR, INPUT_LOGGER) << e.what();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user