diff --git a/build.ps1 b/build.ps1 index c9dd803..f6a6ccf 100644 --- a/build.ps1 +++ b/build.ps1 @@ -29,7 +29,7 @@ $toolPaths = @( $env:PATH = ($toolPaths -join ";") + ";" + $env:PATH # Change to project directory -Set-Location "C:\git\channel3\esp32_channel3" +Set-Location "C:\git\Esp32TV" Write-Host "ESP-IDF Path: $env:IDF_PATH" Write-Host "Working directory: $(Get-Location)" diff --git a/flash.ps1 b/flash.ps1 index 20b5795..a86425a 100644 --- a/flash.ps1 +++ b/flash.ps1 @@ -17,7 +17,7 @@ $toolPaths = @( ) $env:PATH = ($toolPaths -join ";") + ";" + $env:PATH -Set-Location "C:\git\channel3\esp32_channel3" +Set-Location "C:\git\Esp32TV" $python = "C:\Espressif\python_env\idf5.5_py3.11_env\Scripts\python.exe" $idfpy = "$env:IDF_PATH\tools\idf.py" diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index a3cf568..f2d6b90 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -18,4 +18,5 @@ idf_component_register( tablemaker json mbedtls + app_update ) diff --git a/main/user_main.c b/main/user_main.c index 074b965..6f90932 100644 --- a/main/user_main.c +++ b/main/user_main.c @@ -30,6 +30,8 @@ #include "esp_crt_bundle.h" #include "cJSON.h" #include "mqtt_client.h" +#include "esp_ota_ops.h" +#include "esp_app_format.h" #include "video_broadcast.h" #include "3d.h" @@ -1275,6 +1277,11 @@ static const char *html_page = "" "" "
" +"