Ignore:
Timestamp:
01/31/12 17:42:25 (12 years ago)
Author:
gost
Message:

[lcdpearl] allows the visualization of other panels

Location:
titan/plugins/lcdpearl1
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/lcdpearl1/lcdpearl1.c

    r13822 r13868  
    1313struct stimerthread* LCD_Pearl1thread = NULL;
    1414int firststart = 0;
     15
     16#include "lcdpearl_grep.h"
    1517
    1618void LCD_start_lcd4linux()
     
    4951        if(firststart == 1)
    5052                sleep(5);
     53        addtimer(&lcd_raw_event, START, 10000, 1, NULL, NULL, NULL);   
     54        firststart = 0;
    5155        while (LCD_Pearl1thread->aktion != STOP) {
    5256                put = 0;
     
    98102                                        changetext(akttime, tmpstr);
    99103                                        drawscreen(LCD_Pearl1, 0);
    100                                         system(fbgrab);
    101                                         system("mv /tmp/.titanlcd1.png /tmp/titanlcd.png");
     104                                        //system(fbgrab);
     105                                        //system("mv /tmp/.titanlcd1.png /tmp/titanlcd.png");
    102106                               
    103107                                        //system("/var/bin/fbgrab -f /tmp/titanlcd.raw -w 320 -h 240 -b 32 -i /tmp/titanlcd.png > /dev/null");
     
    118122        addconfig("lcd_pearl1_plugin_running", "no");
    119123        LCD_Pearl1thread = NULL;
     124        drawscreen(LCD_Pearl1, 0);
    120125        return;
    121126}
     
    130135                addtimer(&LCD_start_lcd4linux, START, 10000, 1, NULL, NULL, NULL);
    131136                sleep(1);
    132                 firststart = 0;
    133137        }
    134138        else
     
    158162        if(ostrcmp(tmpstr, "yes") == 0)
    159163                LCD_Pearl1_main();
    160         firststart = 0;
    161164        tmpstr=NULL;
    162165}
Note: See TracChangeset for help on using the changeset viewer.