import_remotecontrol 0.2.9 → 0.3.0
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 +8 -8
- data/lib/get_code_list.rb +2 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmQ0MzRmNGJlZjZjOWZmMGU2MTFlMTEwNmE5ZjlkOTE0NGE0OWQyMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDY4MmM5Nzk3MTU4YWJlZjNkMDgyYjQwMmNiMTcyZGM3ODExOGY0Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWVlOGMyOGFlODU2MzFjM2I0NjQ5M2NlNTczZjFiNjVmNjhkMjVkYjNlZGVm
|
10
|
+
YTg4NmM0NWRiOTM5NTZmMjY5ZDNhNDI1OTg5ZGI0NjkyNTIwODExOTYwOWNk
|
11
|
+
ODAxYjA1ODQ4YjcwNTI1N2UzYTVkYWJlMDMyNmEyN2FhOTFlNmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDcwNDc2YTJhMzZkNWE3NjU1YmU3ZDkwNzQzZWZiNTExMTU2ZDI0YjllZDE1
|
14
|
+
NDU4YmRlYWQ5YTQ0NDhmNGMzZDYzYWFjNmY5YjY2YzU1NGI0OTlmZWM5ZDY1
|
15
|
+
YjI3MzQwZjM0NTQyNzBmZmVhMjYxYTgyNWZhMmEzNzg1NzJhZjk=
|
data/lib/get_code_list.rb
CHANGED
@@ -110,9 +110,7 @@ module GetCodeList
|
|
110
110
|
begin
|
111
111
|
codes = code.split(":")
|
112
112
|
ret = "#{prtotoname}:#{codes[0]}:#{codes[1]}:#{codes[2]}:"
|
113
|
-
|
114
|
-
__code = (~__code)&Integer(0b1111)
|
115
|
-
ret = ret + __code.to_s(16)
|
113
|
+
ret = ret +radix_minus_one_complement(codes[2].to_s)
|
116
114
|
rescue => err
|
117
115
|
raise RuntimeError, get_error_msg("Protocol Error, Error msg : #{err.to_s}",{METHOD_NAME => "changHongExtNec"})
|
118
116
|
end
|
@@ -122,12 +120,8 @@ module GetCodeList
|
|
122
120
|
def self.chuangWeiCutNec(prtotoname,code)
|
123
121
|
begin
|
124
122
|
codes = code.split(":")
|
125
|
-
p "Codes : #{codes}"
|
126
123
|
ret = "#{prtotoname}:#{codes[0]}:#{codes[0]}:#{codes[1]}:"
|
127
|
-
|
128
|
-
__code = Integer("0x#{codes[1].to_s}")
|
129
|
-
__code = (~__code)&Integer(0b1111)
|
130
|
-
ret = ret + __code.to_s(16)
|
124
|
+
ret = ret +radix_minus_one_complement(codes[2].to_s)
|
131
125
|
rescue => err
|
132
126
|
raise RuntimeError, get_error_msg("Protocol Error, Error msg : #{err.to_s}",{METHOD_NAME => "chuangWeiCutNec"})
|
133
127
|
end
|