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:
martii
2012-07-13 16:23:04 +02:00
parent 122fd5afa9
commit cc553ad6bf

View File

@@ -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