Skip to content

Commit 91c8664

Browse files
committed
Do not increment MIN
Update device lib
1 parent 670fced commit 91c8664

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144

145145
<!-- Second level dependencies -->
146146
<maps.storage.version>2.5.2-SNAPSHOT</maps.storage.version>
147-
<maps.device.version>3.0.1-SNAPSHOT</maps.device.version>
147+
<maps.device.version>3.1.1-SNAPSHOT</maps.device.version>
148148
<maps.auth.version>3.0.0-SNAPSHOT</maps.auth.version>
149149

150150

src/main/java/io/mapsmessaging/network/protocol/impl/satellite/gateway/protocol/SatelliteGatewayProtocol.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ private void packAndSend(Map<String, List<byte[]>> replacement) throws IOExcepti
290290
byte[] tmp = satelliteMessage.packToSend();
291291
byte[] payload = new byte[tmp.length + 2];
292292
payload[0] = (byte)sin;
293-
payload[1] = (byte) idx++;
293+
payload[1] = (byte) idx;
294294
System.arraycopy(tmp, 0, payload, 2, tmp.length);
295295
totalPayloadSize += payload.length;
296296
MessageData submitMessage = new MessageData();

src/main/java/io/mapsmessaging/network/protocol/impl/satellite/modem/protocol/StoGiProtocol.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public class StoGiProtocol extends Protocol implements Consumer<Packet> {
105105
private Destination destination;
106106
private long lastOutgoingMessagePollInterval;
107107
private int satelliteOnlineCount;
108-
private int messageId;
108+
private final int messageId;
109109
private boolean satelliteOnline;
110110

111111
public StoGiProtocol(EndPoint endPoint, Packet packet) throws LoginException, IOException {
@@ -572,7 +572,6 @@ private void sendMessageViaModem(int streamNumber, SatelliteMessage satelliteMes
572572
System.arraycopy(raw,2,buffer,0,raw.length-2);
573573
}
574574
else {
575-
messageId = (messageId + 1) % 0xff;
576575
min = messageId;
577576
buffer = satelliteMessage.packToSend();
578577
}

0 commit comments

Comments
 (0)