Skip to content

Commit 0c99ed6

Browse files
project: Flush stdout on print from build python script.
1 parent 405ebb5 commit 0c99ed6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def clean_build(root_dir, hex_name, build_flags={}):
4141
os.environ["CXXFLAGS"] = ""
4242
for flag, value in build_flags.items():
4343
os.environ["CXXFLAGS"] += f" -D{flag}={value}"
44-
print(f"\n{'#' * 80}\n# Building: {hex_name}\n{'#' * 80}")
44+
print(f"\n{'#' * 80}\n# Building: {hex_name}\n{'#' * 80}", flush=True)
4545
# build() exits if any system call returns a non-zero exit code
4646
build(clean=True, verbose=False, parallelism=os.cpu_count())
4747

source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ int main() {
312312
uBit.serial.send((uint8_t *)serial_data, serial_str_length, SYNC_SLEEP);
313313
uBit.display.print(IMG_RUNNING);
314314
} else {
315-
// Stale data, blink the waiting image until new data is received
315+
// No new data received, blink the waiting image
316316
static bool blink = true;
317317
static uint32_t blink_count = 0;
318318
if (blink_count++ % 30 == 0) {

0 commit comments

Comments
 (0)