Ignore:
Timestamp:
02/29/12 21:00:41 (12 years ago)
Author:
gost
Message:

[lcdpearl] optimization

File:
1 edited

Legend:

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

    r14052 r14366  
    1414int firststart = 0;
    1515int draw = 0;
    16 
    17 #include "lcdpearl_grep.h"
    1816
    1917void LCD_start_lcd4linux()
     
    7270        if(firststart == 1)
    7371                sleep(8);
    74         addtimer(&lcd_raw_event, START, 10000, 1, NULL, NULL, NULL);   
    7572        firststart = 0;
    7673        draw = 0;
     
    233230                free(tmpstr2); tmpstr2 = NULL;
    234231                free(tmpstr3); tmpstr3 = NULL;
    235                 sleep(1);
     232                //sleep(1);
     233                usleep(500000);
    236234        }
    237235        free(timemerk);timemerk=NULL;
     
    250248        if(LCD_Pearl1thread == NULL)
    251249        {
     250                char* tmpstr = NULL;
     251                tmpstr = ostrcat("cp ", getconfig("pluginpath", NULL), 0, 0);
     252                tmpstr = ostrcat(tmpstr, "/lcdpearl1/start.png", 1, 0);
     253                tmpstr = ostrcat(tmpstr, " /tmp/titanlcd.png", 1, 0);
     254                system(tmpstr);
     255                free(tmpstr); tmpstr=NULL;
    252256                textbox(_("Message"), _("LCD Pearl1 starts ..."), _("OK"), getrcconfigint("rcok", NULL), NULL, 0, NULL, 0, NULL, 0, 600, 200, 5, 0);
    253257                addconfig("lcd_pearl1_plugin_running", "yes");
Note: See TracChangeset for help on using the changeset viewer.