Commit f330e63 1 parent 603ef07 commit f330e63 Copy full SHA for f330e63
File tree 1 file changed +7
-1
lines changed
packages/connect/src/device
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -773,8 +773,14 @@ export class Device extends TypedEmitter<DeviceEvents> {
773
773
774
774
const btcOnly = this . firmwareType === FirmwareType . BitcoinOnly ;
775
775
const binary = await getBinaryOptional ( { baseUrl, btcOnly, release } ) ;
776
+ // release was found, but not its binary - happens on desktop, where only local files are searched
776
777
if ( binary === null ) {
777
- // release was found, but not its binary - happens on desktop, where only local files are searched
778
+ return createFailResult ( 'check-unsupported' ) ;
779
+ }
780
+ // binary was found, but it's likely a git LFS pointer (can happen on dev) - see onCallFirmwareUpdate.ts
781
+ if ( binary . byteLength < 200 ) {
782
+ _log . warn ( `Firmware binary for hash check suspiciously small (< 200 b)` ) ;
783
+
778
784
return createFailResult ( 'check-unsupported' ) ;
779
785
}
780
786
You can’t perform that action at this time.
0 commit comments