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

sensor: ping360: Improve test to check for firmware version over 3.3.0 #1068

Merged
merged 1 commit into from Nov 29, 2023

Conversation

patrickelectric
Copy link
Member

@patrickelectric patrickelectric commented Nov 29, 2023

The newer firmware versions come with async mode

The newer firmwares come with async mode

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Copy link
Contributor

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

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

Cool!

if (_commonVariables.deviceInformation.firmware_version_major == 3
&& _commonVariables.deviceInformation.firmware_version_minor == 3
&& _commonVariables.deviceInformation.firmware_version_patch == 1) {
if (version > QVersionNumber(3, 3, 0)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait, we changed here from 3.3.1 to 3.3.0!
@patrickelectric

Copy link
Member Author

Choose a reason for hiding this comment

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

I prefer doing > over >=

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, it was ==, not >=. Is this okay?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's the intended behavior, the async feature is only available on newer firmware, that are newer than 3.3.0, it started on 3.3.1

Copy link
Contributor

Choose a reason for hiding this comment

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

okay

@joaoantoniocardoso joaoantoniocardoso merged commit 578c795 into bluerobotics:master Nov 29, 2023
4 checks passed
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