mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-22 20:43:07 +00:00
[FL-3003] Fix logical error in storage script (#2105)
* Fix logical error in storage script * Fix formatting
This commit is contained in:
parent
5c3a5cd8f7
commit
df808be8d7
1 changed files with 3 additions and 3 deletions
|
@ -238,9 +238,9 @@ class FlipperStorage:
|
|||
while read_size < size:
|
||||
self.read.until("Ready?" + self.CLI_EOL)
|
||||
self.send("y")
|
||||
read_size = min(size - read_size, buffer_size)
|
||||
filedata.extend(self.port.read(read_size))
|
||||
read_size = read_size + read_size
|
||||
chunk_size = min(size - read_size, buffer_size)
|
||||
filedata.extend(self.port.read(chunk_size))
|
||||
read_size = read_size + chunk_size
|
||||
|
||||
percent = str(math.ceil(read_size / size * 100))
|
||||
total_chunks = str(math.ceil(size / buffer_size))
|
||||
|
|
Loading…
Reference in a new issue