mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
1.1.9 spiffs firmware update seems to work
This commit is contained in:
parent
88b1ad5443
commit
6e2cb723ea
2 changed files with 8 additions and 4 deletions
|
|
@ -349,7 +349,11 @@ class SoftwareUpdateService : JobIntentService(), Logging {
|
|||
|
||||
// Send all the blocks
|
||||
while (firmwareNumSent < firmwareSize) {
|
||||
progress = firmwareNumSent * 100 / firmwareSize
|
||||
// If we are doing the spiffs partition, we limit progress to a max of 50%, so that the user doesn't think we are done
|
||||
// yet
|
||||
val maxProgress = if(flashRegion != FLASH_REGION_APPLOAD)
|
||||
50 else 100
|
||||
progress = firmwareNumSent * maxProgress / firmwareSize
|
||||
debug("sending block ${progress}%")
|
||||
var blockSize = 512 - 3 // Max size MTU excluding framing
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue