From 6b280b917e2126128ce1fc1dcbe1c4b74e3831e4 Mon Sep 17 00:00:00 2001 From: martii Date: Wed, 13 Nov 2013 20:37:46 +0100 Subject: [PATCH] tools/spark_fp: add option for enabling/disabling icons Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/8f0f5dd29a55ac2d41e3de5c6b9d56f1758b12b4 Author: martii Date: 2013-11-13 (Wed, 13 Nov 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- tools/spark_fp.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tools/spark_fp.c b/tools/spark_fp.c index 613a56e..8ca112c 100644 --- a/tools/spark_fp.c +++ b/tools/spark_fp.c @@ -49,6 +49,8 @@ void usage() printf("\t-S :: set standby RC code\n"); printf("\t-l : set LED on\n"); printf("\t-L : set LED off\n"); + printf("\t-i : set icon on\n"); + printf("\t-I : set icon off\n"); printf("times are given in unix time (UTC, seconds since 1970-01-01 00:00:00)\n"); printf("\n"); } @@ -143,7 +145,7 @@ int main(int argc, char **argv) } ret = 0; - while ((c = getopt (argc, argv, "gs:tw:Tl:L:P:S:B:")) != -1) + while ((c = getopt (argc, argv, "gs:tw:Tl:L:P:S:B:i:I:")) != -1) { switch (c) { @@ -227,6 +229,16 @@ int main(int argc, char **argv) aotom.u.led.led_nr = atoi(optarg); ioctl(fd, VFDSETLED, &aotom); break; + case 'i': /* icon on */ + aotom.u.icon.on = 1; + aotom.u.icon.icon_nr = atoi(optarg); + ioctl(fd, VFDICONDISPLAYONOFF, &aotom); + break; + case 'I': /* icon off */ + aotom.u.icon.on = 0; + aotom.u.icon.icon_nr = atoi(optarg); + ioctl(fd, VFDICONDISPLAYONOFF, &aotom); + break; case 'T': ret = ioctl(fd, VFDGETVERSION, &val); if (ret < 0)