balboa_worldwide_app 2.0.3 → 2.0.4
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 +4 -4
- data/lib/bwa/client.rb +4 -2
- data/lib/bwa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64fc310dcf147c2786084dcd1fd792942a46d4af3a9e3a32caed05aafd3af2db
|
4
|
+
data.tar.gz: 881215be0b0f7ec906c0c1fa36f8866abe16e0dd748d906ddaa324c9b46f7af9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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 =
|
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