Merge branch 'master' of github.com:brmlab/ledbar

This commit is contained in:
Radka Haneckova 2011-10-02 10:17:55 +02:00
commit eb5bee19b6
7 changed files with 347 additions and 6 deletions

View file

@ -345,14 +345,13 @@ int main(int argc, char* argv[])
}
if (fp) {
struct termios t;
tcgetattr(fileno(fp), &t);
cfsetspeed(&t, B38400);
tcsetattr(fileno(fp), TCSADRAIN, &t);
struct termios t;
tcgetattr(fileno(fp), &t);
cfsetspeed(&t, B38400);
tcsetattr(fileno(fp), TCSADRAIN, &t);
sleep(2);
}
sleep(2);
if (SDL_Init(SDL_INIT_VIDEO) < 0) return 1;
if (!(screen = SDL_SetVideoMode(RESX, RESY, BPP, SDL_HWSURFACE))) {
SDL_Quit();