diff --git a/android-src/KV4PHT/app/src/main/java/com/vagell/kv4pht/firmware/bearconsole/CommandInterfaceESP32.java b/android-src/KV4PHT/app/src/main/java/com/vagell/kv4pht/firmware/bearconsole/CommandInterfaceESP32.java index ff541709..ad9c4b35 100644 --- a/android-src/KV4PHT/app/src/main/java/com/vagell/kv4pht/firmware/bearconsole/CommandInterfaceESP32.java +++ b/android-src/KV4PHT/app/src/main/java/com/vagell/kv4pht/firmware/bearconsole/CommandInterfaceESP32.java @@ -608,7 +608,7 @@ public void flashData(byte binaryData[], int offset, int part) { } private int flash_defl_begin(int size, int compsize, int offset) { - +rd int num_blocks = (int) Math.floor((double) (compsize + (IS_STUB ? STUBLOADER_FLASH_WRITE_SIZE : FLASH_WRITE_SIZE) - 1) / (double) (IS_STUB ? STUBLOADER_FLASH_WRITE_SIZE : FLASH_WRITE_SIZE)); int erase_blocks = (int) Math.floor((double) (size + (IS_STUB ? STUBLOADER_FLASH_WRITE_SIZE : FLASH_WRITE_SIZE) - 1) / (double) (IS_STUB ? STUBLOADER_FLASH_WRITE_SIZE : FLASH_WRITE_SIZE)); // Start time diff --git a/android-src/KV4PHT/app/src/main/res/raw/v4_kv4p_ht_esp32_wroom_32_ino.bin b/android-src/KV4PHT/app/src/main/res/raw/v4_kv4p_ht_esp32_wroom_32_ino.bin index b1c494f7..537e9bf1 100644 Binary files a/android-src/KV4PHT/app/src/main/res/raw/v4_kv4p_ht_esp32_wroom_32_ino.bin and b/android-src/KV4PHT/app/src/main/res/raw/v4_kv4p_ht_esp32_wroom_32_ino.bin differ diff --git a/microcontroller-src/kv4p_ht_esp32_wroom_32/kv4p_ht_esp32_wroom_32.ino b/microcontroller-src/kv4p_ht_esp32_wroom_32/kv4p_ht_esp32_wroom_32.ino index 1d87ba48..e3deedd7 100644 --- a/microcontroller-src/kv4p_ht_esp32_wroom_32/kv4p_ht_esp32_wroom_32.ino +++ b/microcontroller-src/kv4p_ht_esp32_wroom_32/kv4p_ht_esp32_wroom_32.ino @@ -24,7 +24,7 @@ along with this program. If not, see . #include #include -const byte FIRMWARE_VER[8] = {'0', '0', '0', '0', '0', '0', '0', '3'}; // Should be 8 characters representing a zero-padded version, like 00000001. +const byte FIRMWARE_VER[8] = {'0', '0', '0', '0', '0', '0', '0', '4'}; // Should be 8 characters representing a zero-padded version, like 00000001. const byte VERSION_PREFIX[7] = {'V', 'E', 'R', 'S', 'I', 'O', 'N'}; // Must match RadioAudioService.VERSION_PREFIX in Android app. // Commands defined here must match the Android app