balboa_worldwide_app 2.0.3 → 2.0.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
  SHA256:
3
- metadata.gz: 3fca5333c7db064572f3179a76f34ae4be4915fe54e6d00d7e1ba3ac018b2faa
4
- data.tar.gz: 4e8bb6e201feb560bdff1424802d38ce38993f91bb9adb741f629590a7e5fa87
3
+ metadata.gz: 64fc310dcf147c2786084dcd1fd792942a46d4af3a9e3a32caed05aafd3af2db
4
+ data.tar.gz: 881215be0b0f7ec906c0c1fa36f8866abe16e0dd748d906ddaa324c9b46f7af9
5
5
  SHA512:
6
- metadata.gz: 402069abd87db291867298dc70fa9180944972965d3456f4ea99bc44c55a56472fc2592f51edcd3a67c55e9e22b9bfdb184b7f9de6105834128d40c457ea4647
7
- data.tar.gz: 74e2a3ac63a6e90ceb82dcc97139a30572e62c980420c66b7dac3c156668ddcec999be06b8414958a67fde084af4c6ea9d6312f261d3c36a4569378d7c779f49
6
+ metadata.gz: 54ddd001789885a8134d2cc0d479c5506a51a000394fb4cf6f268d49f8dfa90f216468dcbe1fbc0f947568ea52ccab55975a65d4605e23330e8d8a5dc5feeb62
7
+ data.tar.gz: 06a454791a33e646ecc8e10c7362c978e138d4a82ea404466ef5207ad2cc2624ae65ecadd425744306922aa18b008a2f3c9b2dd1003896da7be50d6ab3089831
data/lib/bwa/client.rb CHANGED
@@ -160,7 +160,8 @@ module BWA
160
160
  return unless status && configuration
161
161
 
162
162
  desired = 0 if desired == false
163
- desired = 1 if desired == true
163
+ desired = configuration.pumps[index] if desired == true
164
+ desired = [desired, configuration.pumps[index]].min
164
165
  times = (desired - status.pumps[index]) % (configuration.pumps[index] + 1)
165
166
  times.times do
166
167
  toggle_pump(index)
@@ -191,7 +192,8 @@ module BWA
191
192
  return unless status && configuration
192
193
 
193
194
  desired = 0 if desired == false
194
- desired = 1 if desired == true
195
+ desired = configuration.blower if desired == true
196
+ desired = [desired, configuration.blower].min
195
197
  times = (desired - status.blower) % (configuration.blower + 1)
196
198
  times.times do
197
199
  toggle_blower
data/lib/bwa/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BWA
4
- VERSION = "2.0.3"
4
+ VERSION = "2.0.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balboa_worldwide_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer