print_ir_loop() now iterates through all channels