farmbot-serial 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f03cbb43d92cc8ca47bed51d5973dd8b9df2c62
4
- data.tar.gz: bf21efaa7da97549064830d066a241cca4276224
3
+ metadata.gz: 61087c538ee886dd6030ebb713f7463f912017d3
4
+ data.tar.gz: 84166a472181c9dad33a0f4a6477a7af6ee700d3
5
5
  SHA512:
6
- metadata.gz: c56c1392cb0b02d10a725f8e182fb4840d06b8fe8968be3aa9d73c4f7afdb114a6595f98051323026ad8c594ce1b2c52ad946c666abc8656feb61504825072e1
7
- data.tar.gz: 43b13c2e162e3c879dfd79365ce56797a28c02ad8aeb84604979d46a58558c2b358dd2a05ad73f08f3cbf882e54b111300c4c415f1b58eedaf6ce428bfdc5cde
6
+ metadata.gz: fdbcadb1607ee0cc2d0146f860d82129a6417c415c98819ef6abaab2c71076e7031f0afec753ce09c815f53bbde591e1e1ead1c623260e5e8d243093cdb4d79f
7
+ data.tar.gz: f154ffb8c945c40ae88e7976a6dfe51bb2eca1fdf2316547d9a55b1f10ad4d7b7bf801b830cc3464b7b154f0e173cbaf51ec3dbea4e7b6b64ffe4ff5ea89fc82
@@ -69,6 +69,8 @@ module FB
69
69
 
70
70
  def write_parameter(num, val)
71
71
  write { "F22 P#{num} V#{val}" }
72
+ key = Gcode::PARAMETER_DICTIONARY.fetch(num, "UNKNOWN_PARAMETER_#{num}")
73
+ bot.status.transaction { |i| i[key] = val }
72
74
  end
73
75
 
74
76
  def write_pin(pin:, value:, mode:)
@@ -54,7 +54,8 @@ module FB
54
54
 
55
55
  def set_parameter(key, val)
56
56
  transaction do |info|
57
- info[Gcode::PARAMETER_DICTIONARY.fetch(key, "PIN_#{key}".to_sym)] = val
57
+ info[Gcode::PARAMETER_DICTIONARY.fetch(key,
58
+ "UNKNOWN_PARAMETER_#{key}".to_sym)] = val
58
59
  end
59
60
  end
60
61
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: farmbot-serial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Evers
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-10 00:00:00.000000000 Z
12
+ date: 2015-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler