From 5aed09c09a13b2850e155f757ee145fb937676c0 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 11 Mar 2020 13:56:41 +0100 Subject: [PATCH] Add int parameter to xiaomi-display-feature --- cmds/xiaomi-display-feature.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmds/xiaomi-display-feature.cpp b/cmds/xiaomi-display-feature.cpp index 0f2d276..3dd97fb 100644 --- a/cmds/xiaomi-display-feature.cpp +++ b/cmds/xiaomi-display-feature.cpp @@ -33,6 +33,8 @@ int main(int argc, char **argv) { mode = 9; if(modeArg == "HIGHLIGHT") mode = 11; + else + mode = atoi(argv[1]); svc->setFeature(0, mode, atoi(argv[2]), 255); }