irrecord: Refactor state in get_toggle_bit_mask() (toggle_state).
irrecord: Refactor state in get_toggle_bit_mask() (toggle_state).

stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc,stb-tester/lirc