Add debug code for MAC/ESN failure, made IR LED test optoinal