Skip to content

Commit

Permalink
Fix use of incorrect variable in conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
vjmuzik committed Sep 17, 2020
1 parent a03afd1 commit 8393c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NativeEthernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void EthernetClass::setSocketSize(size_t _socket_size){

void EthernetClass::setSocketNum(uint8_t _socket_num){
if(socket_num != 0) return;
if(socket_num > FNET_CFG_SOCKET_MAX) socket_num = FNET_CFG_SOCKET_MAX;
if(_socket_num > FNET_CFG_SOCKET_MAX) socket_num = FNET_CFG_SOCKET_MAX;
else socket_num = _socket_num;
}

Expand Down

0 comments on commit 8393c14

Please sign in to comment.