Fix: stm32w flasher for Ubuntu 12.04 and later
This commit is contained in:
parent
ecdbbaec9a
commit
7905316c54
9 changed files with 1975 additions and 1 deletions
25
tools/stm32w/stm32w_flasher/py_files/messages.py
Normal file
25
tools/stm32w/stm32w_flasher/py_files/messages.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
# See comment in stm32w_flasher.py.
|
||||
# Extraction and little adaptation performed by E.Duble (CNRS, LIG).
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
def errorMessage(msg, header=True):
|
||||
if header:
|
||||
sys.stderr.write('ERROR: ')
|
||||
sys.stderr.write(msg)
|
||||
sys.stderr.flush()
|
||||
|
||||
def infoMessage(msg, header=True):
|
||||
if header:
|
||||
sys.stdout.write('INFO: ')
|
||||
sys.stdout.write(msg)
|
||||
sys.stdout.flush()
|
||||
|
||||
def warningMessage(msg, header=True):
|
||||
if header:
|
||||
sys.stderr.write('WARNING: ')
|
||||
sys.stderr.write(msg)
|
||||
sys.stderr.flush()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue