Browse Source

ota: simplify the include chain

pull/2471/head
Maxim Prokhorov 2 years ago
parent
commit
a4bc8c690d
6 changed files with 11 additions and 10 deletions
  1. +2
    -1
      code/espurna/ota.cpp
  2. +1
    -1
      code/espurna/ota.h
  3. +2
    -1
      code/espurna/ota_arduinoota.cpp
  4. +2
    -3
      code/espurna/ota_asynctcp.cpp
  5. +2
    -3
      code/espurna/ota_httpupdate.cpp
  6. +2
    -1
      code/espurna/ota_web.cpp

+ 2
- 1
code/espurna/ota.cpp View File

@ -4,10 +4,11 @@ OTA MODULE COMMON FUNCTIONS
*/
#include "espurna.h"
#include "ota.h"
#include "rtcmem.h"
#include "system.h"
#include "terminal.h"
#include "rtcmem.h"
#include "utils.h"
#include "ws.h"


+ 1
- 1
code/espurna/ota.h View File

@ -6,7 +6,7 @@ OTA MODULE
#pragma once
#include "espurna.h"
#include "system.h"
// Main entrypoint for basic OTA methods
// (like clients, arduinoota and basic web)


+ 2
- 1
code/espurna/ota_arduinoota.cpp View File

@ -6,10 +6,11 @@ Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
*/
#include "ota.h"
#include "espurna.h"
#if OTA_ARDUINOOTA_SUPPORT
#include "ota.h"
#include "system.h"
#include "ws.h"


+ 2
- 3
code/espurna/ota_asynctcp.cpp View File

@ -6,7 +6,7 @@ Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
*/
#include "ota.h"
#include "espurna.h"
#if OTA_CLIENT == OTA_CLIENT_ASYNCTCP
@ -14,8 +14,7 @@ Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
// Terminal and MQTT OTA command handlers
// -----------------------------------------------------------------------------
#include <Arduino.h>
#include "espurna.h"
#include "ota.h"
#if TERMINAL_SUPPORT || OTA_MQTT_SUPPORT


+ 2
- 3
code/espurna/ota_httpupdate.cpp View File

@ -10,13 +10,12 @@ Copyright (C) 2019 by Maxim Prokhorov <prokhorov dot max at outlook dot com>
// OTA by using Core's HTTP(s) updater
// -----------------------------------------------------------------------------
#include "ota.h"
#include "espurna.h"
#if OTA_CLIENT == OTA_CLIENT_HTTPUPDATE
#include <memory>
#include "mqtt.h"
#include "ota.h"
#include "system.h"
#include "terminal.h"


+ 2
- 1
code/espurna/ota_web.cpp View File

@ -7,10 +7,11 @@ Copyright (C) 2020 by Maxim Prokhorov <prokhorov dot max at outlook dot com>
*/
#include "ota.h"
#include "espurna.h"
#if WEB_SUPPORT && OTA_WEB_SUPPORT
#include "ota.h"
#include "web.h"
#include "ws.h"


Loading…
Cancel
Save