IRDA: Changed the way ir_sum is calculated.