Skip to content

Conversation

@rhulme
Copy link
Contributor

@rhulme rhulme commented Dec 4, 2025

Fixes #2750

void PICO_WEAK_FUNCTION_IMPL_NAME(pico_get_unique_board_id)(pico_unique_board_id_t *id_out) {
*id_out = retrieved_id;
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it's worth adding a comment (either here or in the header file) that explicitly says what pico_get_unique_board_id_string will return for "host" builds?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. I've added comments and removed the static part. If someone wants to get a different ID, they just need to implement their own version of pico_get_unique_board_id, and pico_get_unique_board_id_string will automatically follow suit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. But I was suggesting clarifying if (the default implementation of) pico_get_unique_board_id_string returns "A0A1A2A3A4A5A6A7" or "A7A6A5A4A3A2A1A0" 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants