Skip to content

Commit

Permalink
Suppress M261.1 modbus errors writing to var
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Agricola <[email protected]>
  • Loading branch information
benagricola committed Oct 2, 2024
1 parent ab3d623 commit 3969d1b
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 @@ -2709,12 +2709,12 @@ GCodeResult Platform::ReceiveI2cOrModbus(GCodeBuffer& gb, const StringRef &reply
break;
}
}
else
else if (resultVar == nullptr) // Only report comm error if not storing result in variable
{
reply.copy("no or bad response from Modbus device");
}
}
else
else if (resultVar == nullptr)
{
reply.copy("couldn't initiate Modbus transaction");
}
Expand Down

0 comments on commit 3969d1b

Please sign in to comment.