farmbot-serial 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/arduino.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4d7554eef5b6c62b3693295a8978a01f20cadfe
4
- data.tar.gz: a936a1693a5e82846b026b3073750860e31102ad
3
+ metadata.gz: 13a66521f3af57ec3336636065bb5019cccd8391
4
+ data.tar.gz: 3566d30977fddd4e4907974545d41079e9691b2e
5
5
  SHA512:
6
- metadata.gz: 5ad40cff8705449eb7928fe56c88228c55f7d0b57473814d9ee2d60c6cc5216c682e655eac4ad7aa793a2ff4fa898afcd299c0c974c4d12c171bdbf271936249
7
- data.tar.gz: 0caed3ec33fb392b8cc9f95129614c5de869b78c20370070f2eb81176816a2bc889bf2247d992576a8e381ae47db82b1e32583a368011cd22dc6661cf08c29ea
6
+ metadata.gz: 4df445412c5fc62137559d7b551d61d5cbea3819315b83d0bcde102168323f8f181097ba21401f41bddfa71979435d56f05d3744efaad1a0423733305213dd50
7
+ data.tar.gz: b14b9e64075481dd4b3e8e653885e033a8ccebbf220fe439e1d14ef5a1ab11144259d264cc5182909181b56aad25178ae4818c7a885c2be9893bff6a061fdc32
data/lib/arduino.rb CHANGED
@@ -66,10 +66,11 @@ module FB
66
66
  end
67
67
 
68
68
  def maybe_execute_command
69
- sleep 0.05 # Throttle CPU
69
+ sleep 0.08 # Throttle CPU
70
70
  gcode = @outbound_queue.pop
71
71
  return unless gcode && status.ready?
72
72
  if gcode.is_a?(FB::Gcode)
73
+ log "RPI MSG: #{gcode}"
73
74
  serial_port.puts gcode
74
75
  status[:last] = gcode.name
75
76
  status[:BUSY] = 1 # If not, pi will race arduino and "talk too fast"
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.4.2
4
+ version: 0.4.3
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-05-07 00:00:00.000000000 Z
12
+ date: 2015-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler