From fd6cadf2da9ce5b92dd22e6fcd913fc627f02510 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 20 Aug 2023 19:56:16 -0400 Subject: [PATCH] adb: hotfix --- core/adb_handlers/__init__.py | 2 +- core/aimedb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/adb_handlers/__init__.py b/core/adb_handlers/__init__.py index a5c401f..0c96baf 100644 --- a/core/adb_handlers/__init__.py +++ b/core/adb_handlers/__init__.py @@ -3,4 +3,4 @@ from .base import CompanyCodes, ReaderFwVer, CMD_CODE_GOODBYE, HEADER_SIZE from .lookup import ADBLookupRequest, ADBLookupResponse, ADBLookupExResponse from .campaign import ADBCampaignClearRequest, ADBCampaignClearResponse, ADBCampaignResponse, ADBOldCampaignRequest, ADBOldCampaignResponse from .felica import ADBFelicaLookupRequest, ADBFelicaLookupResponse, ADBFelicaLookup2Request, ADBFelicaLookup2Response -from .log import ADBLogExRequest, ADBLogRequest, ADBStatusLogRequest +from .log import ADBLogExRequest, ADBLogRequest, ADBStatusLogRequest, ADBLogExResponse diff --git a/core/aimedb.py b/core/aimedb.py index 0a1b4f5..f608231 100644 --- a/core/aimedb.py +++ b/core/aimedb.py @@ -282,7 +282,7 @@ class AimedbProtocol(Protocol): for x in range(req.num_logs): self.logger.debug(f"User {req.logs[x].aime_id} logged {req.logs[x].status.name} event, credit_ct: {req.logs[x].credit_ct} bet_ct: {req.logs[x].bet_ct} won_ct: {req.logs[x].won_ct}") - return ADBBaseResponse(resp_code, 0x20, 1, req.head.game_id, req.head.store_id, req.head.keychip_id, req.head.protocol_ver) + return ADBLogExResponse.from_req(req.head) def handle_goodbye(self, data: bytes, resp_code: int) -> None: self.logger.info(f"goodbye from {self.transport.getPeer().host}")