fix typeo

This commit is contained in:
Hoang Bui 2024-03-21 01:27:44 -04:00 committed by GitHub
parent db1f818920
commit 4514b83693
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -647,7 +647,7 @@ class firehose_client(metaclass=LogBase):
partition = res[2]
active = ((partition.flags >> (AB_FLAG_OFFSET*8))&0xFF) & AB_PARTITION_ATTR_SLOT_ACTIVE == AB_PARTITION_ATTR_SLOT_ACTIVE
if active:
self.printer("Current active slot : a")
self.printer("Current active slot: a")
return True
res = self.firehose.detect_partition(options, "boot_b")
if res[0]:
@ -655,7 +655,7 @@ class firehose_client(metaclass=LogBase):
partition = res[2]
active = ((partition.flags >> (AB_FLAG_OFFSET*8))&0xFF) & AB_PARTITION_ATTR_SLOT_ACTIVE == AB_PARTITION_ATTR_SLOT_ACTIVE
if active:
self.printer("Current active slot : b")
self.printer("Current active slot: b")
return True
self.error("Can't detect active slot. Please make sure your device has slot A/B")
return False