/* perform checks if the last bit was not incorrect  */
static void rc5_modify_last_bit(trc5_last_bit_type bit)
/* perform checks if the last bit was not incorrect  */
static void rc5_modify_last_bit(trc5_last_bit_type bit)
{
    if(RC5_NAN != bit){
        if(RC5_INV != rc5_tmp_packet.last_bit){
            rc5_tmp_packet.last_bit = bit;
            rc5_write_bit(rc5_tmp_packet.last_bit);
        }else{
            rc5_reset_packet();
        }
    }
}