Skip to content

Commit 64f4956

Browse files
committed
fix(esptool): Fix flush output while flashing
With the new esptool v5.0 the output is not flushed while flashing the firmware. This commit fixes the issue by using python unbuffered mode.
1 parent e964cc3 commit 64f4956

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#
2-
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
2+
# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
6-
76
import subprocess
87
import sys
98

109
if __name__ == '__main__':
11-
sys.exit(subprocess.run([sys.executable, '-m', 'esptool'] + sys.argv[1:]).returncode)
10+
sys.exit(subprocess.run([sys.executable, '-u', '-m', 'esptool'] + sys.argv[1:]).returncode)

0 commit comments

Comments
 (0)