mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Always build otaSetup function
This commit is contained in:
parent
155dba41ce
commit
e692190cde
@ -188,6 +188,18 @@ static void ota_on_error(ota_error_t error)
|
||||
// delay(5000);
|
||||
}
|
||||
|
||||
IRAM_ATTR void otaLoop(void)
|
||||
{
|
||||
ArduinoOTA.handle();
|
||||
}
|
||||
|
||||
void otaEverySecond(void)
|
||||
{
|
||||
if(otaPrecentageComplete >= 0) otaProgress();
|
||||
}
|
||||
#endif // HASP_USE_ARDUINOOTA
|
||||
|
||||
|
||||
void otaSetup(void)
|
||||
{
|
||||
#if ESP_ARDUINO_VERSION_MAJOR >= 2
|
||||
@ -236,17 +248,6 @@ void otaSetup(void)
|
||||
#endif // HASP_USE_ARDUINOOTA
|
||||
}
|
||||
|
||||
IRAM_ATTR void otaLoop(void)
|
||||
{
|
||||
ArduinoOTA.handle();
|
||||
}
|
||||
|
||||
void otaEverySecond(void)
|
||||
{
|
||||
if(otaPrecentageComplete >= 0) otaProgress();
|
||||
}
|
||||
#endif // HASP_USE_ARDUINOOTA
|
||||
|
||||
#if HASP_USE_HTTP_UPDATE > 0
|
||||
static unsigned long htppLastLoopTime = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user