mirror of
https://github.com/mnaberez/py65.git
synced 2024-10-15 10:24:03 +00:00
Fix monitor's "mpu" command to not be case sensitive
This commit is contained in:
parent
96bbe8b7e8
commit
111541cd90
@ -213,8 +213,13 @@ class Monitor(cmd.Cmd):
|
||||
self._output("Current MPU is %s" % self._mpu.name)
|
||||
available_mpus()
|
||||
else:
|
||||
requested = args
|
||||
new_mpu = self.mpulist.get(requested, None)
|
||||
requested = args.lower()
|
||||
new_mpu = None
|
||||
for name, klass in self.mpulist.items():
|
||||
if name.lower() == requested:
|
||||
new_mpu = klass
|
||||
break
|
||||
|
||||
if new_mpu is None:
|
||||
self._output("Unknown MPU: %s" % args)
|
||||
available_mpus()
|
||||
|
Loading…
Reference in New Issue
Block a user