Skip to content

Commit

Permalink
PR #8807 from Nir: Recommended update pop up hot fix
Browse files Browse the repository at this point in the history
(cherry picked from commit fbb09f7)
  • Loading branch information
maloel committed Apr 12, 2021
1 parent 6a1eb64 commit f596c36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/sw-update/dev-updates-profile.cpp
Expand Up @@ -110,8 +110,8 @@ namespace rs2
auto found = std::find_if(
software_versions.begin(),
software_versions.end(),
[policy]( const std::pair< sw_update::version, version_info > & ver_info ) {
return ver_info.second.policy == policy;
[&]( const std::pair< sw_update::version, version_info > & ver_info ) {
return ver_info.second.policy == policy && software_version < ver_info.first;
} );
if( found != software_versions.end() )
{
Expand All @@ -127,8 +127,8 @@ namespace rs2
auto found = std::find_if(
firmware_versions.begin(),
firmware_versions.end(),
[policy](const std::pair< sw_update::version, version_info >& ver_info) {
return ver_info.second.policy == policy;
[&](const std::pair< sw_update::version, version_info >& ver_info) {
return ver_info.second.policy == policy && firmware_version < ver_info.first;
} );
if( found != firmware_versions.end() )
{
Expand Down

0 comments on commit f596c36

Please sign in to comment.