             ">> http://%s.local/\n", 
             host
         );
-        SPIFFS.remove("/tmp/checkpoint");
     } else {
         DEBUG2(">> mDNS setup failed.\n");
     }


void setup(void) {
    DBG_OUTPUT_PORT.begin(115200);
    if (SPIFFS.exists("/tmp/checkpoint")) {
        ESP.eraseConfig();
        SPIFFS.remove("/tmp/checkpoint");
        DEBUG2("erased persistent config.\n");
        resetall();
    }
    DEBUG2("\n>> ESP starting... " DCHDMI_VERSION "\n");
    DEBUG2(">> %s\n", ESP.getFullVersion().c_str());
    DBG_OUTPUT_PORT.setDebugOutput(false);


void setupMDNS() {
    DEBUG2(">> Setting up mDNS...\n");
    if (MDNS.begin(host, ipAddress)) {
        DEBUG2(">> mDNS started.\n");
        MDNS.addService("http", "tcp", 80);
