Skip to content

HydroPro: Fix duplicate use of second alert temp#484

Merged
jonasmalacofilho merged 1 commit intoliquidctl:mainfrom
MacGyverNL:HydroPro-alert-temp-fix
Jul 24, 2022
Merged

HydroPro: Fix duplicate use of second alert temp#484
jonasmalacofilho merged 1 commit intoliquidctl:mainfrom
MacGyverNL:HydroPro-alert-temp-fix

Conversation

@MacGyverNL
Copy link
Contributor

@MacGyverNL MacGyverNL commented Jul 24, 2022

Somewhere between the initial proposal[1] and the final inclusion[2] of this feature, this seems to have been changed to use the second alert temperature twice.

This is a bug that results in what I can only describe as the colour getting "stuck" at the interpolated halfway-point between color2 and color3 when temperature rises over 40 degrees.

Tested with my h100i Pro RGB, using all three temperatures results in the expected behaviour of interpolation between color1 and color2 between 30 and 40 degrees, and interpolation between color2 and color3 between 40 and 50 degrees.

[1] https://github.com/liquidctl/liquidctl/pull/234/files#diff-6e83d451ee55e2e559f9aa43783fe2574adddb8edaf9252aca4b476b5f0821b5R212
[2] https://github.com/liquidctl/liquidctl/pull/264/files#diff-6e83d451ee55e2e559f9aa43783fe2574adddb8edaf9252aca4b476b5f0821b5R186

Fixes: No issue filed, possibly #461
Related: #137, #234, #264


Checklist:

All unchecked items were imo non-applicable.

  • Adhere to the development process
  • Conform to the style guide
  • Verify that the changes work as expected on real hardware
  • Add automated tests cases
  • Verify that all (other) automated tests (still) pass
  • Update the README and other applicable documentation pages
  • Update the liquidctl.8 Linux/Unix/Mac OS man page
  • Update or add applicable docs/*guide.md device guides
  • Submit relevant data, scripts or dissectors to https://github.com/liquidctl/collected-device-data

Nothing new was added, so remaining checklist items removed.

Somewhere between the initial proposal[1]  and the final inclusion[2] of this feature, this seems to have been changed to use the second alert temperature twice.

This is a bug that results in what I can only describe as the colour getting "stuck" at the interpolated halfway-point between color2 and color3 when temperature rises over 40 degrees.

Tested with my h100i Pro RGB, using all three temperatures results in the expected behaviour of interpolation between color1 and color2 between 30 and 40 degrees, and interpolation between color2 and color3 between 40 and 50 degrees.

[1] <https://github.com/liquidctl/liquidctl/pull/234/files#diff-6e83d451ee55e2e559f9aa43783fe2574adddb8edaf9252aca4b476b5f0821b5R212>
[2] <https://github.com/liquidctl/liquidctl/pull/264/files#diff-6e83d451ee55e2e559f9aa43783fe2574adddb8edaf9252aca4b476b5f0821b5R186>
@MacGyverNL MacGyverNL marked this pull request as ready for review July 24, 2022 00:33
@jonasmalacofilho
Copy link
Member

Thanks!

Yeap, and I'm the one that messed up: b86d6c5f2fb8a.

I'm going to merge without waiting on feedback from #461 because, regardless of that, this fixes what's clearly a mistake.

(But I also expect this to fix #461).

@jonasmalacofilho jonasmalacofilho merged commit 81c7078 into liquidctl:main Jul 24, 2022
@MacGyverNL MacGyverNL deleted the HydroPro-alert-temp-fix branch July 24, 2022 18:12
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.

2 participants