Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
hfedcba committed Jul 7, 2016
2 parents 3035261 + c7a4664 commit 4a76f42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/InsteonPeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ void InsteonPeer::getValuesFromPacket(std::shared_ptr<InsteonPacket> packet, std
if(frame->channel == -2)
{
startChannel = 0;
endChannel = (_rpcDevice->functions.end()--)->first;
endChannel = _rpcDevice->functions.rbegin()->first;
}
else endChannel = startChannel;
for(int32_t l = startChannel; l <= endChannel; l++)
Expand Down
4 changes: 2 additions & 2 deletions src/PhysicalInterfaces/Insteon_Hub_X10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ InsteonHubX10::InsteonHubX10(std::shared_ptr<BaseLib::Systems::PhysicalInterface
_out.setPrefix(GD::out.getPrefix() + "Insteon Hub X10 \"" + settings->id + "\": ");

signal(SIGPIPE, SIG_IGN);
_socket = std::unique_ptr<BaseLib::SocketOperations>(new BaseLib::SocketOperations(_bl));
_socket = std::unique_ptr<BaseLib::TcpSocket>(new BaseLib::TcpSocket(_bl));

_lengthLookup[0x50] = 11;
_lengthLookup[0x51] = 25;
Expand Down Expand Up @@ -667,7 +667,7 @@ void InsteonHubX10::startListening()
try
{
stopListening();
_socket = std::unique_ptr<BaseLib::SocketOperations>(new BaseLib::SocketOperations(GD::bl, _settings->host, _settings->port));
_socket = std::unique_ptr<BaseLib::TcpSocket>(new BaseLib::TcpSocket(GD::bl, _settings->host, _settings->port));
_socket->setReadTimeout(1000000);
_out.printDebug("Connecting to Insteon Hub X10 with Hostname " + _settings->host + " on port " + _settings->port + "...");
_stopped = false;
Expand Down
2 changes: 1 addition & 1 deletion src/PhysicalInterfaces/Insteon_Hub_X10.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class InsteonHubX10 : public IInsteonInterface
int64_t _lastAction = 0;
std::string _hostname;
std::string _port;
std::unique_ptr<BaseLib::SocketOperations> _socket;
std::unique_ptr<BaseLib::TcpSocket> _socket;
std::mutex _requestMutex;
std::shared_ptr<Request> _request;
std::mutex _sendMutex;
Expand Down

0 comments on commit 4a76f42

Please sign in to comment.