         while (millis() < waitTill)
         {
             DebugPrint(debug, ".");
-            const unsigned long someTimeAfter1970 = (2016 - 1970) * 365 * 24 * 3600;
-            time_t now = time(nullptr);
-            if (now > someTimeAfter1970)
+            const unsigned long anyTimeAfter1970 = (2016 - 1970) * 365 * 24 * 3600;
+            const time_t now = time(nullptr);
+            if (now > anyTimeAfter1970)
             {
                 timeIsSet = true;
                 break;

    }
}

void sendDataToSql(Sensor& sensor)
{
    if (sensor.isValid())
    {
        sendDataToSql(sensor.getTemperature(),
                      roundf(sensor.getHumidity()),
                      roundf(sensor.getPressureMmHg()),
                      sensor.getId());
    }
}

void sendDataToSql(float temp, int humidity, int pressure, int sensorId)
{
    digitalWrite(led, 0);

    char buf[128];
    char tempStr[7];
    dtostrf(temp, sizeof(tempStr)-1, 2, tempStr);

    int res = snprintf(buf, sizeof(buf),
        "INSERT INTO Weather.sensor_smile (temp, hum, press, sensorId) VALUES (%s, %d, %d, %d)",
        tempStr, humidity, pressure, sensorId);

    if (res < 0 || res >= sizeof(buf))
    {
        DebugPrint(debug, "The SQL buffer is too small.\r\n");
        return;
    }

    if (sqlCursor.execute(buf))
    {
        DebugPrint(debug, "SQL sent: %s\r\n", buf);
    }

    digitalWrite(led, 1);
}

        DebugPrint(debug, "Error[%u]: ", error);
        switch (error)
        {
            case OTA_AUTH_ERROR:    DebugPrint(debug, "Auth Failed\r\n"); break;
            case OTA_BEGIN_ERROR:   DebugPrint(debug, "Begin Failed\r\n"); break;
            case OTA_CONNECT_ERROR: DebugPrint(debug, "Connect Failed\r\n"); break;
            case OTA_RECEIVE_ERROR: DebugPrint(debug, "Receive Failed\r\n"); break;
            case OTA_END_ERROR:     DebugPrint(debug, "End Failed\r\n"); break;
        }
    });
}
