Skip to content

Attribute _write function as weak, so it can be overridden by sketch#13

Merged
StarSphere-1024 merged 1 commit into
Seeed-Studio:masterfrom
SoporTechnologies:feature/override_write
Feb 24, 2026
Merged

Attribute _write function as weak, so it can be overridden by sketch#13
StarSphere-1024 merged 1 commit into
Seeed-Studio:masterfrom
SoporTechnologies:feature/override_write

Conversation

@jgartrel
Copy link
Copy Markdown

Feature request

It would be generally useful if the _write function could be overridden by the sketch. By attributing the function as "weak", this would allow a sketch to override the base functionality to, perhaps, dynamically redirect the console output to another screen, another UART device such as BLEUart, or capture that output into a persisted logfile.

@MatthewJeffson MatthewJeffson added Adafruit_nRF52_Arduino Label for Adafruit_nRF52_Arduino Pull request Label for pull requests UAY Unassigned yet labels Feb 17, 2026
@StarSphere-1024 StarSphere-1024 merged commit 34fa509 into Seeed-Studio:master Feb 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Adafruit_nRF52_Arduino Label for Adafruit_nRF52_Arduino Pull request Label for pull requests UAY Unassigned yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants