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
sensor: ping360: Improve test to check for firmware version over 3.3.0 #1068
Conversation
The newer firmwares come with async mode Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
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.
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)) { |
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.
Wait, we changed here from 3.3.1 to 3.3.0!
@patrickelectric
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 prefer doing > over >=
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.
hmm, it was ==
, not >=
. Is this okay?
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.
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
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.
okay
The newer firmware versions come with async mode