aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoredvalley <52469633+edvalley@users.noreply.github.com>2023-07-07 08:16:03 -0400
committerGitHub <noreply@github.com>2023-07-07 08:16:03 -0400
commit83cb4c11d740a3645a5b9a5dafbc13b245c89a07 (patch)
tree7f0f103f487aa40692651f9a747fdbeb7a0e7e92 /src
parentc12f74fea206191877d4a727547bfdb0c9b938cc (diff)
downloadtrackermap-server-83cb4c11d740a3645a5b9a5dafbc13b245c89a07.tar.gz
trackermap-server-83cb4c11d740a3645a5b9a5dafbc13b245c89a07.tar.bz2
trackermap-server-83cb4c11d740a3645a5b9a5dafbc13b245c89a07.zip
Change tabs to spaces
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java b/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java
index dbac159b3..2237dcebc 100644
--- a/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/LaipacProtocolDecoder.java
@@ -111,23 +111,23 @@ public class LaipacProtocolDecoder extends BaseProtocolDecoder {
private String decodeEvent(String event, Position position) {
if (event.length() == 1) {
- char inputStatus = event.charAt(0);
- if (inputStatus >= 'A' && inputStatus <= 'D') {
- int inputStatusInt = inputStatus - 'A';
- position.set(Position.PREFIX_IN + 1, inputStatusInt & 1);
- position.set(Position.PREFIX_IN + 2, inputStatusInt & 2);
+ char inputStatus = event.charAt(0);
+ if (inputStatus >= 'A' && inputStatus <= 'D') {
+ int inputStatusInt = inputStatus - 'A';
+ position.set(Position.PREFIX_IN + 1, inputStatusInt & 1);
+ position.set(Position.PREFIX_IN + 2, inputStatusInt & 2);
position.set(Position.PREFIX_IN + 3, 0);
- return null;
- } else if (inputStatus >= 'O' && inputStatus <= 'R') {
+ return null;
+ } else if (inputStatus >= 'O' && inputStatus <= 'R') {
int inputStatusInt = inputStatus - 'O';
position.set(Position.PREFIX_IN + 1, inputStatusInt & 1);
- position.set(Position.PREFIX_IN + 2, inputStatusInt & 2);
+ position.set(Position.PREFIX_IN + 2, inputStatusInt & 2);
position.set(Position.PREFIX_IN + 3, 1);
return null;
}
- }
+ }
- return event;
+ return event;
}