Skip to content

Commit

Permalink
Suppress Modbus comm error when V passed
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Agricola <[email protected]>
  • Loading branch information
benagricola committed Aug 21, 2024
1 parent 39446ec commit 0ccba92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Platform/Platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2502,12 +2502,12 @@ GCodeResult Platform::ReceiveI2cOrModbus(GCodeBuffer& gb, const StringRef &reply
break;
}
}
else
else if(resultVar == nullptr) // Report comm error if output variable not set
{
reply.copy("no or bad response from Modbus device");
}
}
else
else if(resultVar == nullptr) // Report init error if output variable not set
{
reply.copy("couldn't initiate Modbus transaction");
}
Expand Down

0 comments on commit 0ccba92

Please sign in to comment.