Browse Source

Bugs removed that prevented the screen from turning on again.:

master
Florian Streibelt 11 years ago
parent
commit
e36d00c393
  1. 2
      display-daemon/Makefile
  2. 7
      display-daemon/ser.c

2
display-daemon/Makefile

@ -2,3 +2,5 @@ CFLAGS=-g -Wall @@ -2,3 +2,5 @@ CFLAGS=-g -Wall
ser: ser.c
gcc -ggdb -Wall ser.c -o ser -lpthread
#mipsel-linux-uclibc-gcc -o ser.mips ser.c -lpthread
run: ser
./ser

7
display-daemon/ser.c

@ -217,6 +217,7 @@ rthread (void *args) @@ -217,6 +217,7 @@ rthread (void *args)
{
screensaver = 0;
display_dim (4);
if (pc == '\n')
{
@ -227,7 +228,6 @@ rthread (void *args) @@ -227,7 +228,6 @@ rthread (void *args)
display_write (&c, 1);
}
pc = c;
display_dim (4);
}
close (pipe);
}
@ -322,7 +322,10 @@ main (int argc, char **argv) @@ -322,7 +322,10 @@ main (int argc, char **argv)
}
//printf ("screensaver = %05d brightness: %d\n", screensaver, brightness);
screensaver = (screensaver + 1) % TIME_CLOCK + TIME_OFF + TIME_DIM;
if (screensaver < (TIME_CLOCK + TIME_OFF + TIME_DIM + 10)){
screensaver++;
}
//screensaver = (screensaver + 1) % (TIME_CLOCK + TIME_OFF + TIME_DIM + 10);
if (screensaver == TIME_CLOCK)
{

Loading…
Cancel
Save