Parse percentages in fan curve only if '%' provided otherwise range is 0-255

This commit is contained in:
Luke D. Jones
2021-10-27 22:35:45 +13:00
parent 328ff0251b
commit 3f0df82f2d
4 changed files with 31 additions and 5 deletions

View File

@@ -44,7 +44,8 @@ pub struct FanCurveCommand {
#[options(
meta = "",
help = "data format = 30c:1%,49c:2%,59c:3%,69c:4%,79c:31%,89c:49%,99c:56%,109c:58%. `mod-profile` required"
help = "data format = 30c:1%,49c:2%,59c:3%,69c:4%,79c:31%,89c:49%,99c:56%,109c:58%.
`--mod-profile` required. If '%' is omitted the fan range is 0-255"
)]
pub data: Option<CurveData>,
}