Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5896c624 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "idlcli: vibrator: Fix Compose Scale Validation"

parents 9a8c972a 54a2e58b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ class CommandCompose : public Command {
                {"-b", {"Block for duration of vibration."}},
                {"<delay>", {"In milliseconds"}},
                {"<primitive>", {"Primitive ID."}},
                {"<scale>", {"0.0 (exclusive) - 1.0 (inclusive)."}},
                {"<scale>", {"0.0 (inclusive) - 1.0 (inclusive)."}},
                {"...", {"May repeat multiple times."}},
        };
        return details;
@@ -72,7 +72,7 @@ class CommandCompose : public Command {
                return USAGE;
            }
            if (auto scale = args.pop<decltype(effect.scale)>();
                scale && *scale > 0.0 && scale <= 1.0) {
                scale && *scale >= 0.0 && scale <= 1.0) {
                effect.scale = *scale;
                std::cout << "Scale: " << effect.scale << std::endl;
            } else {