Skip to content

Commit

Permalink
modbus: Mute build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kumajaya authored and azoitl committed Apr 13, 2024
1 parent 6cdee1a commit 2dcae0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/com/modbus/modbusclientconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ int CModbusConnectionEvent::executeEvent(modbus_t *paModbusConn, void *paRetVal)

restartTimer();

switch (mFlowControl) {
#ifndef WIN32
switch (mFlowControl) {
case eFlowArduino: {
int fd = open(mDevice, O_RDWR);
if (fd >= 0) {
Expand All @@ -221,11 +221,11 @@ int CModbusConnectionEvent::executeEvent(modbus_t *paModbusConn, void *paRetVal)
}
break;
}
#endif
default:
// ignore
break;
};
#endif

int retVal = modbus_connect(paModbusConn);

Expand Down
2 changes: 1 addition & 1 deletion src/com/modbus/modbuslayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ EComResponse CModbusComLayer::processInterrupt(){
switch (mConnectionState){
case e_Connected: {
CIEC_ANY **apoRDs = mFb->getRDs();
unsigned int nrRDs = mFb->getNumRD();
size_t nrRDs = mFb->getNumRD();

unsigned int dataIndex = 0;

Expand Down

0 comments on commit 2dcae0d

Please sign in to comment.