diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-04-16 20:02:04 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-04-16 20:02:04 +0200 |
commit | 6b752a58e26a5fb1cdef0d7d643fb734bf2f37af (patch) | |
tree | 5108de642ba6604f661d5cb74fe06adc15dc2a9f /sensei-raw-ctl.c | |
parent | 8fca46c85b0cf0f908210b5f05b2d50d710d82d1 (diff) | |
parent | 64168aee6ac47d0a3b90d7b71688537a44fad47d (diff) | |
download | sensei-raw-ctl-6b752a58e26a5fb1cdef0d7d643fb734bf2f37af.tar.gz sensei-raw-ctl-6b752a58e26a5fb1cdef0d7d643fb734bf2f37af.tar.xz sensei-raw-ctl-6b752a58e26a5fb1cdef0d7d643fb734bf2f37af.zip |
Merge pull request #8 from savoca/master
Add 'trigger' pulsation mode
Diffstat (limited to 'sensei-raw-ctl.c')
-rw-r--r-- | sensei-raw-ctl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sensei-raw-ctl.c b/sensei-raw-ctl.c index 8ca9fb6..f6c3caf 100644 --- a/sensei-raw-ctl.c +++ b/sensei-raw-ctl.c @@ -125,7 +125,8 @@ enum sensei_pulsation PULSATION_STEADY = 1, PULSATION_SLOW, PULSATION_MEDIUM, - PULSATION_FAST + PULSATION_FAST, + PULSATION_TRIGGER }; /** Device mode. */ @@ -281,6 +282,7 @@ sensei_display_config (const struct sensei_config *config) case PULSATION_SLOW: printf ("slow\n"); break; case PULSATION_MEDIUM: printf ("medium\n"); break; case PULSATION_FAST: printf ("fast\n"); break; + case PULSATION_TRIGGER: printf ("trigger\n"); break; default: printf ("unknown\n"); } @@ -324,7 +326,7 @@ show_usage (const char *program_name) printf (" --cpi-on X Set CPI with the LED on to X\n"); printf (" --cpi-off X Set CPI with the LED off to X\n"); printf (" --pulsation X Set the pulsation mode" - " (steady, slow, medium, fast)\n"); + " (steady, slow, medium, fast, trigger)\n"); printf (" --intensity X Set the backlight intensity" " (off, low, medium, high)\n"); printf (" --save Save the current configuration to ROM\n"); @@ -445,6 +447,8 @@ parse_options (int argc, char *argv[], new_config->pulsation = PULSATION_MEDIUM; else if (!strcasecmp (optarg, "fast")) new_config->pulsation = PULSATION_FAST; + else if (!strcasecmp (optarg, "trigger")) + new_config->pulsation = PULSATION_TRIGGER; else { fprintf (stderr, "Error: invalid backlight pulsation: %s\n", optarg); |