smartware 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/smartware/interfaces/modem.rb +2 -1
- data/lib/smartware/version.rb +1 -1
- metadata +1 -1
@@ -49,12 +49,13 @@ module Smartware
|
|
49
49
|
def self.poll_status!
|
50
50
|
t = Thread.new do
|
51
51
|
loop do
|
52
|
+
@status = {}
|
52
53
|
@status[:signal_level] = @device.signal_level
|
53
54
|
@status[:model] = @device.model
|
54
55
|
@status[:error] = @device.error
|
55
56
|
|
56
57
|
balance = @device.ussd("*100#")
|
57
|
-
@status[:balance] = balance
|
58
|
+
@status[:balance] = balance if balance
|
58
59
|
sleep 5
|
59
60
|
end
|
60
61
|
end
|
data/lib/smartware/version.rb
CHANGED