potential bugfix for issue 2.  Now resetting the irtoy if the transmit failed, then putting it back in sampling mode.