aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/Checksum.java
diff options
context:
space:
mode:
authorIvan Muratov <binakot@gmail.com>2017-07-14 09:36:06 +0300
committerIvan Muratov <binakot@gmail.com>2017-07-14 09:36:06 +0300
commit01ec19f81270e38451e6a8b898abb22d6a2a3994 (patch)
tree19a68cd6de1909a92974655947819d0fafbda575 /src/org/traccar/helper/Checksum.java
parenta2376cf6354a94c8bd8c8e13c4e78936d4f2ae97 (diff)
parenta71dd10a966b491c64232180a2075450f0a258db (diff)
downloadtrackermap-server-01ec19f81270e38451e6a8b898abb22d6a2a3994.tar.gz
trackermap-server-01ec19f81270e38451e6a8b898abb22d6a2a3994.tar.bz2
trackermap-server-01ec19f81270e38451e6a8b898abb22d6a2a3994.zip
Merge branch 'arnavi4_remarks'
Diffstat (limited to 'src/org/traccar/helper/Checksum.java')
-rw-r--r--src/org/traccar/helper/Checksum.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/helper/Checksum.java b/src/org/traccar/helper/Checksum.java
index 7a0151d36..44cef9635 100644
--- a/src/org/traccar/helper/Checksum.java
+++ b/src/org/traccar/helper/Checksum.java
@@ -243,7 +243,7 @@ public final class Checksum {
return (10 - (checksum % 10)) % 10;
}
- public static int modulo256(byte... bytes) {
+ public static int modulo256(byte[] bytes) {
int sum = 0;
for (byte b : bytes) {
sum = (sum + b) & 0xFF;