Lora Wifi v2.1 Factory test not working

I have reinstalled the code for the factory test on my WiFi Lora ESP32 V.2.1 and it reboots after every 2 seconds

Serial Monitor with this information"

ELF file SHA256: 0000000000000000
Rebooting…
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13864
load:0x40080400,len:3608
entry 0x400805f0
Serial initial done
you can see OLED printed OLED initial done!
LoRa Initial success!

Any help will be appreciated

Code: