Skip to content
Permalink
Browse files

Run stm32loader.py in Python 2, remove vim modeline and race condition

  • Loading branch information...
timakro committed May 20, 2019
1 parent 3af7ee2 commit 693d90b8d5c5718913f91700d757576b4af217ee
Showing with 3 additions and 3 deletions.
  1. +3 −3 stm32loader.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
#!/usr/bin/env python2

# -*- coding: utf-8 -*-
# vim: sw=4:ts=4:si:et:enc=utf-8

# Author: Ivan A-R <ivan@tuxotronic.org>
# Project page: http://tuxotronic.org/wiki/projects/stm32loader
@@ -100,6 +99,7 @@ def reset(self):
def initChip(self):
# Set boot
self.sp.setRTS(0)
time.sleep(0.1)
self.reset()

self.sp.write("\x7F") # Syncro
@@ -337,7 +337,7 @@ def writeMemory(self, addr, data):



def __init__(self) :
def __init__(self) :
pass


0 comments on commit 693d90b

Please sign in to comment.
You can’t perform that action at this time.