From 2738030775fba23aab221d703a2fa046a3062bc4 Mon Sep 17 00:00:00 2001 From: James Gartrell Date: Mon, 16 Feb 2026 07:54:49 -0800 Subject: [PATCH] Attribute _write function as weak, so it can be overridden by sketch --- cores/nRF5/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/nRF5/main.cpp b/cores/nRF5/main.cpp index bdd66498c..baec2a34c 100644 --- a/cores/nRF5/main.cpp +++ b/cores/nRF5/main.cpp @@ -149,7 +149,7 @@ extern "C" // nanolib printf() retarget // Logger 0: Serial (CDC), 1 Serial1 (UART), 2 Segger RTT -int _write (int fd, const void *buf, size_t count) +int __attribute__((weak)) _write (int fd, const void *buf, size_t count) { (void) fd;