rsmp 0.17.2 → 0.17.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rsmp/tlc/traffic_controller.rb +16 -1
- data/lib/rsmp/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: 4b0fd1e980fcbbcccc0b302debbd6e128291dce874fc64f71f0ad5227bf387d9
|
4
|
+
data.tar.gz: 72172bb7a553ab5d411222de6fce9bb43f4e3754765bb122642c59b5b59a994b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3835c19f22d51abb95076f53374b4d78fd7a583a7984695a72e4ef7ea35cdf0168b4312cf1361c03cdbb5b8c9e9141a0041a792ab754adc9010b6893dd4d7afe
|
7
|
+
data.tar.gz: db8ac3294d90673d21b2a4e59e937452dddbb9eed3a7102981e115086ffc6c74b3ac8ff50c1267f0e4a68b31f45786bfe840b0ef155e80ccc20e8a0fade029d9
|
data/Gemfile.lock
CHANGED
@@ -69,6 +69,7 @@ module RSMP
|
|
69
69
|
@time_int = nil
|
70
70
|
@inputs.reset
|
71
71
|
@signal_priorities = []
|
72
|
+
@dynamic_bands_timeout = 0
|
72
73
|
end
|
73
74
|
|
74
75
|
def dark?
|
@@ -239,7 +240,7 @@ module RSMP
|
|
239
240
|
case command_code
|
240
241
|
when 'M0001', 'M0002', 'M0003', 'M0004', 'M0005', 'M0006', 'M0007',
|
241
242
|
'M0012', 'M0013', 'M0014', 'M0015', 'M0016', 'M0017', 'M0018',
|
242
|
-
'M0019', 'M0020', 'M0021', 'M0022',
|
243
|
+
'M0019', 'M0020', 'M0021', 'M0022', 'M0023',
|
243
244
|
'M0103', 'M0104'
|
244
245
|
|
245
246
|
return send("handle_#{command_code.downcase}", arg, options)
|
@@ -474,6 +475,20 @@ module RSMP
|
|
474
475
|
end
|
475
476
|
end
|
476
477
|
|
478
|
+
def handle_m0023 arg, options={}
|
479
|
+
@node.verify_security_code 2, arg['securityCode']
|
480
|
+
timeout = arg['status'].to_i
|
481
|
+
unless timeout>=0 and timeout <= 65535
|
482
|
+
raise RSMP::MessageRejected.new "Timeout must be in the range 0-65535, got #{timeout}"
|
483
|
+
end
|
484
|
+
if timeout == 0
|
485
|
+
log "Dynamic bands timeout disabled", level: :info
|
486
|
+
else
|
487
|
+
log "Dynamic bands timeout set to #{timeout}min", level: :info
|
488
|
+
end
|
489
|
+
@dynamic_bands_timeout = timeout
|
490
|
+
end
|
491
|
+
|
477
492
|
def handle_m0103 arg, options={}
|
478
493
|
level = {'Level1'=>1,'Level2'=>2}[arg['status']]
|
479
494
|
@node.change_security_code level, arg['oldSecurityCode'], arg['newSecurityCode']
|
data/lib/rsmp/version.rb
CHANGED