meshtastic 0.0.138 → 0.0.139

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: b47353f3b61249b059d054053f000ef6dca870659f46a1c99cc1873030d7e75a
4
- data.tar.gz: 794caf20fd4460d60576f869db88f378059c6a8107c4eb7687d56f83f7dc9673
3
+ metadata.gz: 72220abdd7ec8a367cd29fc79b420a915890ef3266119f9657d1ed2b73608308
4
+ data.tar.gz: 482a685bdef11f2f108ac3a36e3d1908ce58b79dbf6751255ec0c18082ac04c6
5
5
  SHA512:
6
- metadata.gz: 1fa482c17b81cf808ef0b63f160bf2ee6b9dfce2e04c11db6846fc7414549d7d492349efce9c0a6f5b364b739b1ec2b1fcf1b66d9dff532309056386b338f2ea
7
- data.tar.gz: aa8b0043c45ca698f8d84027cbaaa0be45229e36c5751b5ea118ba69dfc1252ccfe0746c42623c9d69575007f67e6c5926fd2e942d9edc17a718802a1447f74b
6
+ metadata.gz: 8418f7484ab23a717f4e4189db8d5c7d2e18f6dd4a3677f20cba6028402975f69a24b270e1a98eb96c6f43f3230b73f8a3cbac5bf44ee6bade2f8fbdc158ffcb
7
+ data.tar.gz: 8e5c92e166e822b6fa1b85b0ec629a11e5f5842f645933ce2868e69aebb535258dd054b87c9a9de6fd6608b1439635381f3523d73e048cd4b93357eb26ed21d8
@@ -286,7 +286,7 @@ module Meshtastic
286
286
  total_chunks = (text.bytesize.to_f / max_bytes).ceil
287
287
  total_chunks.times do |i|
288
288
  chunk_num = i + 1
289
- chunk_prefix = "(#{chunk_num} of #{total_chunks})"
289
+ chunk_prefix = " (#{chunk_num} of #{total_chunks})"
290
290
  chunk_prefix_len = chunk_prefix.bytesize
291
291
  start_index = i * (max_bytes - chunk_prefix_len)
292
292
  end_index = (start_index + (max_bytes - chunk_prefix_len)) - 1
@@ -294,7 +294,7 @@ module Meshtastic
294
294
  # This addresses a weird bug in the protocal if the first byte
295
295
  # is an h or H followed by a single byte, which returns
296
296
  # {} or {bitfiled: INT}
297
- opts[:text] = " #{chunk}"
297
+ opts[:text] = chunk
298
298
  protobuf_chunk = mui.send_text(opts)
299
299
  mqtt_obj.publish(absolute_topic, protobuf_chunk)
300
300
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.138'
4
+ VERSION = '0.0.139'
5
5
  end
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.138
4
+ version: 0.0.139
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.