From 052f32a3f7008134a3045bc886256734354f0d94 Mon Sep 17 00:00:00 2001 From: hans Date: Sat, 24 Jun 2006 17:43:10 -0600 Subject: [PATCH] repeat is hex darcs-hash:20060624234310-28bda-14a724547ba30575d24d7a982a8100cbb712baf3.gz --- lib/lirc.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lirc.rb b/lib/lirc.rb index a4f5e9e..39de1b1 100644 --- a/lib/lirc.rb +++ b/lib/lirc.rb @@ -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