mirror of
https://github.com/brmlab/ledbar.git
synced 2025-06-09 21:34:00 +02:00
Merge branch 'master' of github.com:brmlab/ledbar
This commit is contained in:
commit
eb5bee19b6
7 changed files with 347 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue