Skip to content
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

Bug fix on PNP info #519

Open
wants to merge 3 commits into
base: release/1.4
Choose a base branch
from

Conversation

afpineda
Copy link

Fixed issue #492. Note that some changes are just code formatting from VSCode. Relevant changes are: NimBLEHIDDevice::manufacturer() and NimBLEHIDDevice::pnp()

@@ -18,36 +18,45 @@
#include "NimBLEHIDDevice.h"
#include "NimBLE2904.h"

#define PNPVersionField(MajorVersion, MinorVersion, PatchVersion) ((MajorVersion << 16) && 0xFF00) || ((MinorVersion << 8) && 0x00F0) || (PatchVersion && 0x000F)
Copy link
Author

Choose a reason for hiding this comment

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

There is a mistake in this macro: bitwise operators are | and &, not || and &&

Copy link
Owner

Choose a reason for hiding this comment

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

Would you mind fixing this so I can merge please?

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.

None yet

2 participants