mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
spark_fp: improve wakeup time for short timeouts
Origin commit data
------------------
Branch: master
Commit: 2f1ee80b8e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-05-01 (Tue, 01 May 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -188,11 +188,8 @@ 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);
|
||||||
if (t < t2)
|
if (t == 1)
|
||||||
{
|
t = 0; /* t = 1 is magic for "no time" -> clear... */
|
||||||
/* no valid wakeup time -> clear... */
|
|
||||||
t = 0;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* green LED on */
|
/* green LED on */
|
||||||
@@ -205,6 +202,8 @@ int main(int argc, char **argv)
|
|||||||
perror("ioctl VFDGETTIME");
|
perror("ioctl VFDGETTIME");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (t < t2 + 20)
|
||||||
|
diff = 20;
|
||||||
t += diff;
|
t += diff;
|
||||||
}
|
}
|
||||||
tmp = gmtime(&t2);
|
tmp = gmtime(&t2);
|
||||||
|
Reference in New Issue
Block a user