Skip to content
Snippets Groups Projects
Commit 31c0ef3c authored by Georg von Zengen's avatar Georg von Zengen
Browse files

Device: fixed indention

parent 5ae4aa89
Branches fourth-sheet
No related tags found
No related merge requests found
......@@ -21,9 +21,9 @@ class Device(object):
self.name = config['name']
self.id = config['id']
self.path = config['path']
if config['class'] == 'STM32F4DISCOVERY':
self.serial = config['serial']
self.devcfg=devcfg
if config['class'] == 'STM32F4DISCOVERY':
self.serial = config['serial']
def configure(self, config, testname):
......@@ -379,7 +379,7 @@ class STM32F4DISCOVERY(Device):
try:
self.logger.info( "Uploading DUMMY to %s"%(self.name))
output = subprocess.check_output(["st-flash", "--reset","--serial","%s"%(self.serial), "erase"], stderr=subprocess.STDOUT)
self.reset()
self.reset()
except subprocess.CalledProcessError as err:
self.logger.error(err)
self.logger.error(err.output)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment