TI Keyfob sample code modified by WL