make style

This commit is contained in:
iceman1001 committed 2026-11-09 12:32:20 +07:00
1 parent e3ec14f437
commit 648cbf159c
8 files changed
+37 -31

No files matched your search

+3 -3
View File
@@ -258,13 +258,13 @@ def run_reset_step(counter_index: str, delay_bd: int, delay_00: int) -> None:
def tune_delay(delay_bd: int, previous_counter: int, current_counter: int, locked: bool) -> int:
"""Tune BD delay based on counter changes.
Args:
delay_bd: Current BD delay in microseconds
previous_counter: Previous counter value for comparison
current_counter: Current counter value
locked: If True, delay is locked and not adjusted
Returns:
Adjusted delay_bd value
"""
@@ -375,7 +375,7 @@ class StopListener:
def calibrate_bd_delay(counter_index: str, stop: StopListener) -> Tuple[Optional[int], Optional[int]]:
"""Auto-calibrate BD delay for tear-off.
Returns:
Tuple of (delay_bd, delay_00) where delay_00 is calculated as delay_bd - DELAY_00_OFFSET,
or (None, None) if calibration failed.
+3 -3
View File
@@ -5,7 +5,7 @@
# Tag contents (NTAG) are encrypted are contain a security record computed from card UUID,
# therefore cloning a card contents to another one will not work and such tag will be rejected by a printer.
# You need a Proxmark3 card dump in PM3 bin or json file. Patching will modify this dump so you need to
# You need a Proxmark3 card dump in PM3 bin or json file. Patching will modify this dump so you need to
# upload it again to a card.
# Note that Niimbot mobile app keeps copy of those values on their servers so resetting the tag print counter
@@ -184,7 +184,7 @@ class LabelTag:
field_value = pack("<B", value)
self.vendor_data[offset : offset + 1] = field_value
def uint32_to_field(self, offset, value: int) -> None:
def uint32_to_field(self, offset, value: int) -> None:
field_value = pack("<I", value)
self.vendor_data[offset : offset + 4] = field_value
@@ -279,7 +279,7 @@ class LabelTag:
@print_counter_crc32.setter
def print_counter_crc32(self, value:int):
return self.uint32_to_field(self.PRINT_COUNTER_CRC32_OFFSET, value)
@property
def print_limit(self) -> int: