Skip to content

Commit

Permalink
Fix of by one error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Dec 12, 2022
1 parent 5500f20 commit 9adcaeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static int getNetworkTransmissionInterval(final int networkIntervalSteps)
* @return Network Transmit Count.
*/
public static int getTransmissionCount(final int transmissions) {
if (transmissions < MIN_TRANSMIT_COUNT || transmissions > MAX_TRANSMIT_COUNT) {
if (transmissions < MIN_TRANSMISSIONS || transmissions > MAX_TRANSMISSIONS) {
throw new IllegalArgumentException("Network Transmissions must be in range 1-8.");
}
return transmissions - 1;
Expand Down

0 comments on commit 9adcaeb

Please sign in to comment.