This commit adds support for the --machine option to the asetekpro pump so that it produces machine readable output for the values of the temperature, fans and pump.
Types of changes
What types of changes does your code introduce to OpenCorsairLink?
Put an x in the boxes that apply
[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
Proposed changes
This commit adds support for the
--machine
option to the asetekpro pump so that it produces machine readable output for the values of the temperature, fans and pump.Types of changes
What types of changes does your code introduce to OpenCorsairLink? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
The fix was to simply add calls to the
msg_machine()
method similar to what already exists in thehydro_asetek.c
file.I have tested this with a H150i Pro and it produces output like:
This change should work with other devices that use the asetekpro pump