diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3e70c51..187bde4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,7 +7,7 @@ on: env: ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS: "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json" ARDUINO_CLI_VERSION: "0.x" - ARDUINO_ESP32_VERSION: "2.0.10" + ARDUINO_ESP32_VERSION: "2.0.14" ARDUINO_JSON_VERSION: "6.21.3" ESPTOOL_VERSION: "4.6" LITTLEFS_VERSION: "v2.5.1" @@ -69,8 +69,6 @@ jobs: asset_name: SomfyController.littlefs.bin asset_path: SomfyController.littlefs.bin overwrite: true - asset_content_type: application/octet-stream - arduino: permissions: write-all @@ -85,7 +83,8 @@ jobs: - board: esp32 addr_bootloader: 0x1000 chip: ESP32 - fqbn: esp32:esp32:esp32wrover + fqbn: esp32:esp32:esp32wrover:FlashMode=qio,FlashFreq=80,DebugLevel=none + # esp32:esp32:esp32wrover:PartitionScheme=default,FlashMode=qio,FlashFreq=80,UploadSpeed=921600,DebugLevel=none,EraseFlash=none name: ESP32 obname: SomfyController.onboard.esp32.bin fwname: SomfyController.ino.esp32.bin @@ -180,7 +179,6 @@ jobs: upload_url: ${{ steps.get_release.outputs.upload_url }} asset_name: ${{ matrix.fwname }} asset_path: build/SomfyController.ino.bin - asset_content_type: application/octet-stream - name: ${{ matrix.name }} Compress Onboard Image run: | diff --git a/GitOTA.cpp b/GitOTA.cpp index 4a89760..6121464 100644 --- a/GitOTA.cpp +++ b/GitOTA.cpp @@ -406,6 +406,7 @@ int8_t GitUpdater::downloadFile() { if (httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY || httpCode == HTTP_CODE_FOUND) { WiFiClient *stream = https.getStreamPtr(); if(!Update.begin(len, this->partition)) { + Serial.println("Update Error detected!!!!!"); Update.printError(Serial); https.end(); return -(Update.getError() + UPDATE_ERR_OFFSET); @@ -452,13 +453,13 @@ int8_t GitUpdater::downloadFile() { } } } - Serial.printf("Update %s complete\n", this->currentFile); free(buff); } else { // TODO: memory allocation error. + Serial.println("Unable to allocate memory for update!!!"); } } else { diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index 260455b..2d21fe5 100644 Binary files a/SomfyController.ino.esp32.bin and b/SomfyController.ino.esp32.bin differ diff --git a/data/index.js b/data/index.js index 8554e12..22c0932 100644 --- a/data/index.js +++ b/data/index.js @@ -1,5 +1,5 @@ -var hst = '192.168.1.208'; -//var hst = '192.168.1.152'; +//var hst = '192.168.1.208'; +var hst = '192.168.1.152'; var errors = [ { code: -10, desc: "Pin setting in use for Transceiver. Output pins cannot be re-used." },