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

Add liquid cooling stats #1247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Makevelli
Copy link

@Makevelli Makevelli commented Feb 28, 2024

Add the possibility to display sensors data from watercooling devices. It is mainly for Aquacomputer devices since mainline kernel support is available. Support for devices from other manufacturers could be added if there are kernel modules that expose them in sysfs.

src/liquid.h Outdated
std::vector<WatercoolingDevice> devices;
};

extern LiquidStats liquidStats;
Copy link
Owner

Choose a reason for hiding this comment

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

this should be a unique_ptr

@@ -721,6 +727,8 @@ static void set_param_defaults(struct overlay_params *params){
params->table_columns = 3;
params->text_outline_color = 0x000000;
params->text_outline_thickness = 1.5;
params->liquid_color=0x3fcbd4;
Copy link
Owner

Choose a reason for hiding this comment

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

missing spaces before and after =

@@ -1196,6 +1203,78 @@ void HudElements::device_battery()
#endif
}

void HudElements::liquid_stats()
Copy link
Owner

Choose a reason for hiding this comment

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

Since liquid is only for unix and we only compile liquid.cpp on unix, the windows compiler does not have access to liquidStats.
set #ifndef _WIN32 inside this function so it's not being compiled with mingw.
This should resolve the failing mingw test

@Makevelli
Copy link
Author

Updated to fix mingw build and apply your suggestions

@Makevelli Makevelli reopened this Apr 13, 2024
@Makevelli Makevelli marked this pull request as ready for review April 13, 2024 19:35
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