embeddedartistry / athena-bootloader

An AVR Arduino bootloader that supports uploads over Ethernet (via TFTP) and Serial.
GNU Lesser General Public License v2.1
12 stars 5 forks source link

EthernetReset does not work with default settings #36

Closed phillipjohnston closed 4 years ago

phillipjohnston commented 4 years ago

Since the NetEEPROM library provides default values, there's no reason we shouldn't be able to use the reset server with the default configuration.

This block specifically prevents that:

    if(NetEEPROM.netSigIsSet())
    {
        Ethernet.begin(NetEEPROM.readMAC(), NetEEPROM.readIP(), NetEEPROM.readGW(),
                       NetEEPROM.readGW(), NetEEPROM.readSN());

        _server->begin();
        ETHERNET_DEBUG(Serial.print("Server is at "); Serial.println(Ethernet.localIP());
                       Serial.print("Gw at "); Serial.println(NetEEPROM.readGW());
                       Serial.print("Password: "); Serial.println(_path);)
    }