> 
> My code is broken. Where I said [0..2] I meant [0..5], I added it in at 
> the
> last minute as an overflow check without testing - I was thinking 3 raw 
> hex
> bytes but the string after the conversion is a 6 byte 'friendly' hex 
> string.
> 
> Sorry. :(
> 
> ben

No problem !  I've just modified the code and it works great - thanks :) 
I'm investigating bitstruct as well but it's always nice to have 
alternatives ...

-- 
Posted via http://www.ruby-forum.com/.