meshtastic 0.0.57 → 0.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c950c4dd7c5c5b76373381e77531db84bfb6ec00e98b0dcae8e984487d2cb82
4
- data.tar.gz: d68fad3bf9b66447e8b0264f80fa1cc4eeb36229f4a5d97d6dac811ebe8044ce
3
+ metadata.gz: a264d9893fbd8e3aa81eee241844cdf976374859a1e43c8bbca68e6b8e906781
4
+ data.tar.gz: 77849c92d27e23c9aabc8ac69c4b56add82a6204207622c3383ab15cdef48c19
5
5
  SHA512:
6
- metadata.gz: 635762544aabd1b1650a61e97f61d3e8cf124c279d83119b73f79cd906dda5181a0653844a6d64431c7675aebe80ba53c3b90014226501a0345b8db85873a7cf
7
- data.tar.gz: 51671cf96cc04abf10d870610a54cef4f040258f369b3f8e25fbdd77d2f3c9eefcb8f7704184bf43ca8df1630c0c71f60c9b603c2a124daaa1f41f13aac69db1
6
+ metadata.gz: a12dc68ece20d389402fe79492ec2ebcf109ac30eecc2d0d4e1ed228b2b3292a355bed10ddf0397f7589a41780765599e0a88fabc5944ccb4d979e14d87cbb1b
7
+ data.tar.gz: 61f56c89bca4d7fee23336a1502b196b711f39190b31acc0667e672456ed5194fb20122bbdc323d22491dfec25d7e6d9c2315b63de4961e90871819d0c4cbad8
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.57'
4
+ VERSION = '0.0.58'
5
5
  end
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::
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meshtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.57
4
+ version: 0.0.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.