Skip to content

RoboHeartBLECarControl.ino file need modification #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sporubcan opened this issue Mar 20, 2025 · 0 comments
Open

RoboHeartBLECarControl.ino file need modification #6

sporubcan opened this issue Mar 20, 2025 · 0 comments

Comments

@sporubcan
Copy link

Need to change set order of following two flags (bleNewStatusReceived must not be first, because loop and callbacks are running on different CPU threads):

Correct order of flag set for both callback is:
void bleDisconnected() { bleDeviceConnected = false; bleNewStatusReceived = true; ...
and
void bleConnected() { bleDeviceConnected = true; bleNewStatusReceived = true; ...

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

No branches or pull requests

1 participant