1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-05 21:02:20 +01:00

fix clang-format

This commit is contained in:
Tomasz Duda
2024-02-12 01:43:14 +01:00
parent f00476c9cc
commit eedabbfbb9
15 changed files with 20 additions and 21 deletions

View File

@@ -5,8 +5,7 @@
namespace esphome { namespace esphome {
namespace ota_mcuboot { namespace ota_mcuboot {
class OTAComponent : public ota::OTAComponent { class OTAComponent : public ota::OTAComponent {};
};
} } // namespace ota_mcuboot
} } // namespace esphome

View File

@@ -15,5 +15,5 @@ class OTABackend {
virtual bool supports_compression() = 0; virtual bool supports_compression() = 0;
}; };
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome

View File

@@ -40,7 +40,7 @@ OTAResponseTypes ArduinoESP32OTABackend::end() {
void ArduinoESP32OTABackend::abort() { Update.abort(); } void ArduinoESP32OTABackend::abort() { Update.abort(); }
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif // USE_ESP32_FRAMEWORK_ARDUINO #endif // USE_ESP32_FRAMEWORK_ARDUINO

View File

@@ -18,7 +18,7 @@ class ArduinoESP32OTABackend : public OTABackend {
bool supports_compression() override { return false; } bool supports_compression() override { return false; }
}; };
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif // USE_ESP32_FRAMEWORK_ARDUINO #endif // USE_ESP32_FRAMEWORK_ARDUINO

View File

@@ -52,7 +52,7 @@ void ArduinoESP8266OTABackend::abort() {
esp8266::preferences_prevent_write(false); esp8266::preferences_prevent_write(false);
} }
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif #endif

View File

@@ -24,7 +24,7 @@ class ArduinoESP8266OTABackend : public OTABackend {
#endif #endif
}; };
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif #endif

View File

@@ -40,7 +40,7 @@ OTAResponseTypes ArduinoLibreTinyOTABackend::end() {
void ArduinoLibreTinyOTABackend::abort() { Update.abort(); } void ArduinoLibreTinyOTABackend::abort() { Update.abort(); }
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif // USE_LIBRETINY #endif // USE_LIBRETINY

View File

@@ -18,7 +18,7 @@ class ArduinoLibreTinyOTABackend : public OTABackend {
bool supports_compression() override { return false; } bool supports_compression() override { return false; }
}; };
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif // USE_LIBRETINY #endif // USE_LIBRETINY

View File

@@ -52,7 +52,7 @@ void ArduinoRP2040OTABackend::abort() {
rp2040::preferences_prevent_write(false); rp2040::preferences_prevent_write(false);
} }
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif // USE_RP2040 #endif // USE_RP2040

View File

@@ -20,7 +20,7 @@ class ArduinoRP2040OTABackend : public OTABackend {
bool supports_compression() override { return false; } bool supports_compression() override { return false; }
}; };
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif // USE_RP2040 #endif // USE_RP2040

View File

@@ -110,6 +110,6 @@ void IDFOTABackend::abort() {
this->update_handle_ = 0; this->update_handle_ = 0;
} }
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif #endif

View File

@@ -26,6 +26,6 @@ class IDFOTABackend : public OTABackend {
char expected_bin_md5_[32]; char expected_bin_md5_[32];
}; };
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome
#endif #endif

View File

@@ -523,5 +523,5 @@ void OTAComponent::on_safe_shutdown() {
this->clean_rtc(); this->clean_rtc();
} }
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome

View File

@@ -94,5 +94,5 @@ class OTAComponent : public ota::OTAComponent {
0x5afe5afe; ///< a magic number to indicate that safe mode should be entered on next boot 0x5afe5afe; ///< a magic number to indicate that safe mode should be entered on next boot
}; };
} // namespace ota } // namespace ota_network
} // namespace esphome } // namespace esphome