meshtastic 0.0.57 → 0.0.58
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meshtastic/version.rb +1 -1
- data/lib/meshtastic.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a264d9893fbd8e3aa81eee241844cdf976374859a1e43c8bbca68e6b8e906781
|
4
|
+
data.tar.gz: 77849c92d27e23c9aabc8ac69c4b56add82a6204207622c3383ab15cdef48c19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a12dc68ece20d389402fe79492ec2ebcf109ac30eecc2d0d4e1ed228b2b3292a355bed10ddf0397f7589a41780765599e0a88fabc5944ccb4d979e14d87cbb1b
|
7
|
+
data.tar.gz: 61f56c89bca4d7fee23336a1502b196b711f39190b31acc0667e672456ed5194fb20122bbdc323d22491dfec25d7e6d9c2315b63de4961e90871819d0c4cbad8
|
data/lib/meshtastic/version.rb
CHANGED
data/lib/meshtastic.rb
CHANGED
@@ -273,8 +273,10 @@ module Meshtastic
|
|
273
273
|
last_packet_id = opts[:last_packet_id] ||= 0
|
274
274
|
last_packet_id = 0 if last_packet_id.negative?
|
275
275
|
|
276
|
-
Random.rand(0xffffffff) if last_packet_id.zero?
|
277
|
-
(last_packet_id + 1) & 0xffffffff if last_packet_id.positive?
|
276
|
+
packet_id = Random.rand(0xffffffff) if last_packet_id.zero?
|
277
|
+
packet_id = (last_packet_id + 1) & 0xffffffff if last_packet_id.positive?
|
278
|
+
|
279
|
+
packet_id
|
278
280
|
end
|
279
281
|
|
280
282
|
# Supported Method Parameters::
|