tool/compile_gatt.py: use text-mode for temporary file - fix for windows

This commit is contained in:
Matthias Ringwald 2020-02-23 22:32:19 +01:00
parent c782b5f27b
commit d78181d6b7

View File

@ -1018,7 +1018,7 @@ try:
fin = codecs.open (args.gattfile, encoding='utf-8')
# pass 1: create temp .h file
ftemp = tempfile.TemporaryFile()
ftemp = tempfile.TemporaryFile(mode='w+t')
parse(args.gattfile, fin, filename, sys.argv[0], ftemp)
listHandles(ftemp)