-
-
Notifications
You must be signed in to change notification settings - Fork 587
Enable forwarding unknown messages #2637
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
Conversation
48f8b59 to
e7ba310
Compare
e7ba310 to
4de47b5
Compare
|
julianoes
left a comment
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.
Self reviewed again, I think it's ok.
| #if defined(LINUX) || defined(APPLE) | ||
| send_len = static_cast<int>(write(_fd, bytes, length)); | ||
| #else | ||
| if (!WriteFile(_handle, bytes, static_cast<DWORD>(length), LPDWORD(&send_len), NULL)) { |
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.
Isn't this a Windows function? 🤔
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.
I believe so. It was there before, it just moved.
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.
Oh you're right. So I guess we don't use this function on iOS or Android 🤷
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.
No idea.
|
This is cool! |



This fixes the problem that MAVSDK did not forward messages which it had not seen before. This could happen when: