mirror of
https://github.com/esphome/esphome.git
synced 2026-05-26 19:26:25 +08:00
[esp32] Fix hosted update when there is no wifi (#12123)
This commit is contained in:
@@ -22,6 +22,11 @@ constexpr size_t CHUNK_SIZE = 1500;
|
|||||||
void Esp32HostedUpdate::setup() {
|
void Esp32HostedUpdate::setup() {
|
||||||
this->update_info_.title = "ESP32 Hosted Coprocessor";
|
this->update_info_.title = "ESP32 Hosted Coprocessor";
|
||||||
|
|
||||||
|
// if wifi is not present, connect to the coprocessor
|
||||||
|
#ifndef USE_WIFI
|
||||||
|
esp_hosted_connect_to_slave(); // NOLINT
|
||||||
|
#endif
|
||||||
|
|
||||||
// get coprocessor version
|
// get coprocessor version
|
||||||
esp_hosted_coprocessor_fwver_t ver_info;
|
esp_hosted_coprocessor_fwver_t ver_info;
|
||||||
if (esp_hosted_get_coprocessor_fwversion(&ver_info) == ESP_OK) {
|
if (esp_hosted_get_coprocessor_fwversion(&ver_info) == ESP_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user