format repeat count output in hex like lirc