mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Fixed a bug where less than the requested length was read before EOF in PineTime DFU
This commit is contained in:
+3
-2
@@ -75,8 +75,9 @@ public class PineTimeInstallHandler implements InstallHandler {
|
|||||||
|
|
||||||
final byte[] buffer = new byte[1024];
|
final byte[] buffer = new byte[1024];
|
||||||
|
|
||||||
while (zipInputStream.read(buffer, 0, buffer.length) != -1) {
|
int read;
|
||||||
json.append(new String(buffer));
|
while ((read = zipInputStream.read(buffer, 0, buffer.length)) != -1) {
|
||||||
|
json.append(new String(buffer, 0, read));
|
||||||
}
|
}
|
||||||
|
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
|
|||||||
Reference in New Issue
Block a user