rtos: return the correct value if the T or H packets are handled