mdb: correct decimal places factor, lower transaction cap

master
informatic 2023-07-14 23:28:09 +02:00
parent 0de9112c9b
commit f4bddd3532
1 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@ class CashlessMDBDevice(MDBDevice):
0x01, # Feature level
0x19, 0x85, # PLN x---DD
1, # scaling factor
0x00, # decimal places factor
0x02, # decimal places factor
10, # 10s response time
0x00, # misc options...
]
@ -288,8 +288,8 @@ class CashlessMDBDevice(MDBDevice):
def begin_session(self, amount):
self.logger.info('Beginning session for %d', amount)
# Begins new session with balance provided
if amount > 65535:
amount = 65535
if amount > 10000:
amount = 10000
self.poll_queue.put([0x03, (amount >> 8) & 0xff, amount & 0xff])