Skip to content

Commit

Permalink
fix: adding var and function renaming
Browse files Browse the repository at this point in the history
check_last_transaction it must be modifiable. There are machines that…
  • Loading branch information
well-it-wasnt-me authored Mar 2, 2024
2 parents 6a4229a + cf68fd7 commit eac5177
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sas.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ def __init__(
pos_id="B374A402", # Pos ID
key="44", # Key
debug_level="DEBUG", # Debug Level
perpetual=False # When this is true the lib will try forever to connect to the serial
perpetual=False, # When this is true the lib will try forever to connect to the serial
check_last_transaction = True
):
# Let's address some internal var
self.poll_timeout = timeout
self.address = None
self.machine_n = None
self.aft_get_last_transaction = True
self.check_last_transaction = check_last_transaction
self.denom = denom
self.asset_number = asset_number
self.reg_key = reg_key
Expand Down Expand Up @@ -2781,7 +2782,7 @@ def aft_clean_transaction_poll(self, register=False):
if hex(self.transaction)[2:-1] == response["Transaction ID"]:
return response
else:
if self.aft_get_last_transaction:
if self.check_last_transaction:
raise BadTransactionID(
"last: %s, new:%s "
% (hex(self.transaction)[2:-1], response["Transaction ID"])
Expand Down

0 comments on commit eac5177

Please sign in to comment.