GPIO 0 Writes WIFI config to defaults code location

Where in the code is the function that allows you to ground the GPIO 0 for >7 seconds on an ESP32 and the WIFI part of the CFG.JSON gets rewritten to defaults. So the next time you boot, it will launch an AP.

I am looking to change this from GPIO 0 to a different pin.