debug for ir receiver code