Skip to content

Conversation

@facchinm
Copy link
Contributor

No description provided.

@facchinm facchinm requested review from eigen-value and gbr1 July 31, 2025 13:28
fix: monitor._read mux unlock
fix: monitor trying to connect even if bridge begin fails + monitor._read is private
mod: implementation is Arduino only, better mux usage
Copy link
Collaborator

@gbr1 gbr1 left a comment

Choose a reason for hiding this comment

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

LGTM, tested with various scenarios

Copy link
Collaborator

@eigen-value eigen-value left a comment

Choose a reason for hiding this comment

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

LGTM

src/monitor.h Outdated
bool begin() {
return bridge.call(MON_CONNECTED_METHOD, is_connected);
k_mutex_init(&monitor_mutex);
if (!bridge) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think bridge should be dereferenced first:
(!(*bridge))
otherwise the bool operator is not invoked

@eigen-value eigen-value merged commit 9544f6d into main Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants