fix parser choice

This commit is contained in:
Patrick Moessler 2022-01-09 19:58:49 +01:00
parent fb3178f2ea
commit 82e4065e66

View file

@ -34,7 +34,7 @@ args = parser.parse_args()
if args.interface == 'swd': if args.interface == 'swd':
from i2c_interfaces import JLinkSwdI2CInterface from i2c_interfaces import JLinkSwdI2CInterface
i2c = JLinkSwdI2CInterface(jlink_serial=args.jlink) i2c = JLinkSwdI2CInterface(jlink_serial=args.jlink)
elif args.interface == 'dev': elif args.interface == 'devi2c':
from i2c_interfaces import DevI2CInterface from i2c_interfaces import DevI2CInterface
i2c = DevI2CInterface(bus=args.bus) i2c = DevI2CInterface(bus=args.bus)