File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed
chargepoint/smartcharging Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5
5
cmake_minimum_required (VERSION 3.13)
6
6
7
7
project (OpenOCPP DESCRIPTION "Open Source C++ implementation of the OCPP 1.6 protocol"
8
- VERSION 1.3.0
8
+ VERSION 1.3.1
9
9
)
10
10
11
11
# Definitions for Version.h file
Original file line number Diff line number Diff line change @@ -200,8 +200,8 @@ ocpp::types::ConfigurationStatus OcppConfig::setConfiguration(const std::string&
200
200
std::size_t key_is_interval = key.find (" Interval" );
201
201
if (key_is_interval != std::string::npos)
202
202
{
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 )
205
205
{
206
206
ret = ConfigurationStatus::Rejected;
207
207
}
Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ bool SmartChargingManager::handleMessage(const ocpp::messages::SetChargingProfil
303
303
}
304
304
else
305
305
{
306
+ ret = false ;
306
307
error_message = " Recurring profiles must have a start schedule and a duration" ;
307
308
}
308
309
}
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ void RpcBase::start()
231
231
{
232
232
// Start reception thread
233
233
m_requests_queue.setEnable (true );
234
+ m_results_queue.setEnable (true );
234
235
m_rx_thread = new std::thread (std::bind (&RpcBase::rxThread, this ));
235
236
}
236
237
}
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ bool WebsocketFactory::setClientPoolCount(size_t count)
98
98
/* * @brief Start the client pools */
99
99
bool WebsocketFactory::startClientPools ()
100
100
{
101
- bool ret = false ;
101
+ bool ret = true ;
102
102
103
103
std::lock_guard<std::mutex> lock (s_client_pools_mutex);
104
104
if (!s_client_pools.empty ())
@@ -115,7 +115,7 @@ bool WebsocketFactory::startClientPools()
115
115
/* * @brief Stop the client pools */
116
116
bool WebsocketFactory::stopClientPools ()
117
117
{
118
- bool ret = false ;
118
+ bool ret = true ;
119
119
120
120
std::lock_guard<std::mutex> lock (s_client_pools_mutex);
121
121
if (!s_client_pools.empty ())
You can’t perform that action at this time.
0 commit comments