Skip to content

Commit d30c25f

Browse files
authored
Merge pull request #139 from c-jimenez/release/v1.3.1
Release/v1.3.1
2 parents d65e6c5 + 6dbf234 commit d30c25f

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
cmake_minimum_required(VERSION 3.13)
66

77
project(OpenOCPP DESCRIPTION "Open Source C++ implementation of the OCPP 1.6 protocol"
8-
VERSION 1.3.0
8+
VERSION 1.3.1
99
)
1010

1111
# Definitions for Version.h file

examples/common/config/OcppConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ ocpp::types::ConfigurationStatus OcppConfig::setConfiguration(const std::string&
200200
std::size_t key_is_interval = key.find("Interval");
201201
if (key_is_interval != std::string::npos)
202202
{
203-
std::size_t value_is_negative = key.find("-");
204-
if (value_is_negative)
203+
std::size_t value_is_negative = value.find("-");
204+
if (value_is_negative != std::string::npos)
205205
{
206206
ret = ConfigurationStatus::Rejected;
207207
}

src/chargepoint/smartcharging/SmartChargingManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ bool SmartChargingManager::handleMessage(const ocpp::messages::SetChargingProfil
303303
}
304304
else
305305
{
306+
ret = false;
306307
error_message = "Recurring profiles must have a start schedule and a duration";
307308
}
308309
}

src/rpc/RpcBase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ void RpcBase::start()
231231
{
232232
// Start reception thread
233233
m_requests_queue.setEnable(true);
234+
m_results_queue.setEnable(true);
234235
m_rx_thread = new std::thread(std::bind(&RpcBase::rxThread, this));
235236
}
236237
}

src/websockets/WebsocketFactory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ bool WebsocketFactory::setClientPoolCount(size_t count)
9898
/** @brief Start the client pools */
9999
bool WebsocketFactory::startClientPools()
100100
{
101-
bool ret = false;
101+
bool ret = true;
102102

103103
std::lock_guard<std::mutex> lock(s_client_pools_mutex);
104104
if (!s_client_pools.empty())
@@ -115,7 +115,7 @@ bool WebsocketFactory::startClientPools()
115115
/** @brief Stop the client pools */
116116
bool WebsocketFactory::stopClientPools()
117117
{
118-
bool ret = false;
118+
bool ret = true;
119119

120120
std::lock_guard<std::mutex> lock(s_client_pools_mutex);
121121
if (!s_client_pools.empty())

0 commit comments

Comments
 (0)