We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53e05e1 commit 70ac059Copy full SHA for 70ac059
examples/common/config/OcppConfig.cpp
@@ -200,8 +200,8 @@ ocpp::types::ConfigurationStatus OcppConfig::setConfiguration(const std::string&
200
std::size_t key_is_interval = key.find("Interval");
201
if (key_is_interval != std::string::npos)
202
{
203
- std::size_t value_is_negative = key.find("-");
204
- if (value_is_negative)
+ std::size_t value_is_negative = value.find("-");
+ if (value_is_negative != std::string::npos)
205
206
ret = ConfigurationStatus::Rejected;
207
}
0 commit comments