mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
spark_fp: don't touch LEDs on shutdown
Origin commit data
------------------
Branch: master
Commit: 6f1de0cd6c
Author: martii <you@example.com>
Date: 2012-07-13 (Fri, 13 Jul 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -180,6 +180,7 @@ int main(int argc, char **argv)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
break;
|
break;
|
||||||
diff = t - t2;
|
diff = t - t2;
|
||||||
|
#ifndef MARTII
|
||||||
/* green LED off */
|
/* green LED off */
|
||||||
aotom.u.led.on = LOG_OFF;
|
aotom.u.led.on = LOG_OFF;
|
||||||
aotom.u.led.led_nr = 1;
|
aotom.u.led.led_nr = 1;
|
||||||
@@ -188,6 +189,7 @@ int main(int argc, char **argv)
|
|||||||
aotom.u.led.on = LOG_ON;
|
aotom.u.led.on = LOG_ON;
|
||||||
aotom.u.led.led_nr = 0;
|
aotom.u.led.led_nr = 0;
|
||||||
ioctl(fd, VFDSETLED, &aotom);
|
ioctl(fd, VFDSETLED, &aotom);
|
||||||
|
#endif
|
||||||
if (t == 1)
|
if (t == 1)
|
||||||
t = 0; /* t = 1 is magic for "no time" -> clear... */
|
t = 0; /* t = 1 is magic for "no time" -> clear... */
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user