mirror of
https://github.com/brmlab/ledbar.git
synced 2025-06-09 13:24:01 +02:00
The sleep is only needed if we output data
This commit is contained in:
parent
1bba88fe52
commit
5d2e56b0ec
1 changed files with 5 additions and 6 deletions
|
@ -286,14 +286,13 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fp) {
|
if (fp) {
|
||||||
struct termios t;
|
struct termios t;
|
||||||
tcgetattr(fileno(fp), &t);
|
tcgetattr(fileno(fp), &t);
|
||||||
cfsetspeed(&t, B38400);
|
cfsetspeed(&t, B38400);
|
||||||
tcsetattr(fileno(fp), TCSADRAIN, &t);
|
tcsetattr(fileno(fp), TCSADRAIN, &t);
|
||||||
|
sleep(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(2);
|
|
||||||
|
|
||||||
if (SDL_Init(SDL_INIT_VIDEO) < 0) return 1;
|
if (SDL_Init(SDL_INIT_VIDEO) < 0) return 1;
|
||||||
if (!(screen = SDL_SetVideoMode(RESX, RESY, BPP, SDL_HWSURFACE))) {
|
if (!(screen = SDL_SetVideoMode(RESX, RESY, BPP, SDL_HWSURFACE))) {
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue