Skip to content

Commit

Permalink
convert/cast integer on romsize,ramsize,logocheck
Browse files Browse the repository at this point in the history
  • Loading branch information
wodowiesel committed Oct 22, 2024
1 parent eae3b8c commit f85e76c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code-pc/py/GB-Dumper_v1.8_Rev1.3.1_Py_Interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
print('not found or unknown\n')

romSize = ascii(ser.readline())
romSize = romSize[2:(len(romSize)-5)] #int()
romSize = int(romSize[2:(len(romSize)-5)])
print ('ROM type: '+romSize+'\n')
#sys.stdout.write('ROM size: ')
print('ROM size: ')
Expand Down Expand Up @@ -155,7 +155,7 @@
print('not found or unknown\n')

ramSize = ascii(ser.readline())
ramSize = ramSize[2:(len(ramSize)-5)]
ramSize = int(ramSize[2:(len(ramSize)-5)])
print ('RAM type: '+ramSize+'\n')
#sys.stdout.write('RAM size: ')
print('RAM size: ')
Expand All @@ -177,7 +177,7 @@
#sys.stdout.write('Logo Check: ')
print('Logo Check: ')
logoCheck = ascii(ser.readline())
logoCheck = logoCheck[2:(len(logoCheck)-5)]
logoCheck = int(logoCheck[2:(len(logoCheck)-5)])
#print (logoCheck)
if (logoCheck == 1):
print ('1 OK\n')
Expand Down

0 comments on commit f85e76c

Please sign in to comment.