This commit is contained in:
Lesserkuma 2021-01-16 21:47:46 +01:00
parent 05e71cbdab
commit 65d48f954b
5 changed files with 7 additions and 8 deletions

View File

@ -11,7 +11,7 @@ from . import hw_GBxCartRW
hw_devices = [hw_GBxCartRW]
APPNAME = "FlashGBX"
VERSION_PEP440 = "1.2"
VERSION_PEP440 = "1.2.1"
VERSION = "v{:s}".format(VERSION_PEP440)
class FlashGBX(QtWidgets.QWidget):

View File

@ -475,15 +475,13 @@ class GbxDevice:
buffer = format(command, 's')
self.write(buffer)
if command in (self.DEVICE_CMD["VOLTAGE_3_3V"], self.DEVICE_CMD["VOLTAGE_5V"]):
#time.sleep(0.01)
#time.sleep(0.005)
pass
def set_number(self, number, command):
buffer = format(command, 's') + format(int(number), 'x') + '\x00'
self.write(buffer)
if command in (self.DEVICE_CMD["SET_START_ADDRESS"]):
#time.sleep(0.005)
pass
time.sleep(0.005)
def EnableRAM(self, mbc=1, enable=True):
if enable:
@ -1181,7 +1179,7 @@ class GbxDevice:
self.gbx_flash_write_data_bytes(self.DEVICE_CMD["GBA_FLASH_WRITE_BYTE"], data)
else: # EEPROM / SRAM
self.gbx_flash_write_data_bytes(write_command, data)
self.gbx_flash_write_data_bytes(self.DEVICE_CMD[write_command], data)
self.SetProgress({"action":"WRITE", "bytes_added":len(data)})
self.wait_for_ack()

Binary file not shown.

View File

@ -267,7 +267,8 @@ The author would like to thank the following very kind people for their help and
- Added a firmware check when writing to cartridges with flash chips manufactured by Sharp (unsupported by GBxCart RW firmware R25)
- Added optional verification of written data after ROM flashing *(thanks marv17 for the suggestion)*
### v1.2 (released 2021-01-16)
### v1.2/v1.2.1 (released 2021-01-16)
- Fixed a bug introduced in v1.1 that broke MBC3 handling *(thanks marv17 for reporting)*
- Will now default back to 5V for Game Boy cartridges after unsuccessful flash chip auto-detection
- Added support for DIY carts with the AT49F040 flash chip *(thanks howie0210)*
- Minor bug fixes

View File

@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read(
setuptools.setup(
name="FlashGBX",
version="1.2",
version="1.2.1",
author="Lesserkuma",
description="A GUI application that can read and write Game Boy and Game Boy Advance cartridge data. Currently supports the GBxCart RW hardware device by insideGadgets.",
url="https://github.com/lesserkuma/FlashGBX",