add rx error checking in hardware serial