summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdb/device.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdb/device.py b/mdb/device.py
index 5f789b5..6175bfe 100644
--- a/mdb/device.py
+++ b/mdb/device.py
@@ -150,9 +150,10 @@ class CashlessMDBDevice(MDBDevice):
if req.command == 0x30 and req.validate_checksum():
self.lockup_counter += 1
- if self.lockup_counter >= 20:
+ if self.lockup_counter % 50 == 0:
self.logger.info('YOLO')
return []
+ return
if req.command == 0x31 and req.validate_checksum():
return []
if req.command == 0x37 and req.validate_checksum():