repeat is hex
darcs-hash:20060624234310-28bda-14a724547ba30575d24d7a982a8100cbb712baf3.gz
This commit is contained in:
parent
f2e4c1294a
commit
052f32a3f7
|
@ -14,13 +14,13 @@ module LIRC
|
|||
def initialize(str)
|
||||
code, repeat, @name, @remote = str.split(' ', 4)
|
||||
@code = code.hex
|
||||
@repeat = repeat.to_i
|
||||
@repeat = repeat.hex
|
||||
end
|
||||
def repeat?
|
||||
@repeat > 0
|
||||
end
|
||||
def to_s
|
||||
sprintf("%016x %02d %s %s", @code, @repeat, @name, @remote)
|
||||
sprintf("%016x %02x %s %s", @code, @repeat, @name, @remote)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue