-
Notifications
You must be signed in to change notification settings - Fork 59
CANModule to fit CAN into app restructure #407
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
b489be4
20010f1
1a488c7
4de2cff
3f052b1
d1c8689
5de8de9
2c23625
541583d
6947dd6
a667ffa
a0d658b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,12 +55,8 @@ void CANInterface::rxPostman(void) { | |
| void CANInterface::rxClient(void) { | ||
| while (true) { | ||
| CANMsg *mail = nullptr; | ||
|
|
||
| // Wait for a message to arrive | ||
| do { | ||
| mail = m_rxMailbox.try_get(); // using try_get() because try_get_for() was crashing | ||
| ThisThread::sleep_for(1ms); // TODO: Check for object in mailbox every ms | ||
| } while (mail == nullptr); | ||
| // Check if a message has arrived: | ||
| mail = m_rxMailbox.try_get(); | ||
|
|
||
| MBED_ASSERT(mail != nullptr); | ||
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should no longer be while true if its a 1ms periodic function