Skip to content

Commit

Permalink
[modbus] poller logs PollResult correctly (openhab#8309)
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
  • Loading branch information
ssalonen authored and andrewfg committed Aug 31, 2020
1 parent b032bb6 commit 3bde332
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private class PollResult {

@Override
public String toString() {
return result == null ? String.format("PollResult(result=%s)", result)
return failure == null ? String.format("PollResult(result=%s)", result)
: String.format("PollResult(failure=%s)", failure);
}
}
Expand Down

0 comments on commit 3bde332

Please sign in to comment.