[mcu_periph] Fix error sending

Mistake in the counting of the i2c and uart error sending.