fix parser choice
This commit is contained in:
parent
fb3178f2ea
commit
82e4065e66
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue