Skip to content

Commit

Permalink
chore: disable update pro
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteZhang1024 committed Mar 21, 2024
1 parent e9158fd commit 65f0e37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/kit-bg/src/services/ServiceHardware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,11 @@ class ServiceHardware extends ServiceBase {
);

// update bootloader
const isTouch = deviceType === 'touch' || deviceType === 'pro';
if (isTouch && response.success && firmwareType === 'firmware') {
if (
deviceType === 'touch' &&
response.success &&
firmwareType === 'firmware'
) {
const updateBootRes = await this.updateBootloader(connectId);
if (!updateBootRes.success) return updateBootRes;
}
Expand Down

0 comments on commit 65f0e37

Please sign in to comment.