From b7a8f2235a97b847b47b5da2c572aea035e5e14d Mon Sep 17 00:00:00 2001 From: xcellerator Date: Sun, 30 Oct 2022 19:16:51 +0000 Subject: [PATCH] present as unlimited mobile adapter --- mobile_adapter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mobile_adapter.py b/mobile_adapter.py index 1b82106..21b728d 100755 --- a/mobile_adapter.py +++ b/mobile_adapter.py @@ -511,10 +511,12 @@ class MobileAdapterGB: logger.log.info(f'0x17: Check Telephone Line') if self.line_busy: logger.log.info(f'0x17: Line Busy') - self.packet_data['data'] = bytearray(b'\x05') + # Setting the third byte to 0xf0 indicates that we're using the unlimited battle adapter + self.packet_data['data'] = bytearray(b'\x05\x4d\xf0') else: logger.log.info(f'0x17: Line Free') - self.packet_data['data'] = bytearray(b'\x00') + # Setting the third byte to 0xf0 indicates that we're using the unlimited battle adapter + self.packet_data['data'] = bytearray(b'\x00\x4d\xf0') # 0x19: READ CONFIGURATION DATA elif self.packet_data['id'] == 0x19: