mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
firmware: remove android check for chunk size
This should no longer be needed since Chrome v98 (released Nov. 2021).
This commit is contained in:
committed by
David Lechner
parent
70395a5f5f
commit
614e0b0074
@@ -63,7 +63,6 @@ import { RootState } from '../reducers';
|
||||
import { LegoUsbProductId, legoUsbVendorId } from '../usb';
|
||||
import { defined, ensureError, hex, maybe } from '../utils';
|
||||
import { crc32, fmod, sumComplement32 } from '../utils/math';
|
||||
import { isAndroid } from '../utils/os';
|
||||
import {
|
||||
FailToFinishReasonType,
|
||||
HubError,
|
||||
@@ -485,9 +484,8 @@ function* handleFlashFirmware(action: ReturnType<typeof flashFirmware>): Generat
|
||||
yield* disconnectAndCancel();
|
||||
}
|
||||
|
||||
// 14 is "safe" size for all hubs and Android
|
||||
const maxDataSize =
|
||||
(!isAndroid() && MaxProgramFlashSize.get(info.hubType)) || 14;
|
||||
// 14 is "safe" size for all hubs
|
||||
const maxDataSize = MaxProgramFlashSize.get(info.hubType) || 14;
|
||||
|
||||
let runningChecksum = 0xff;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user