diff --git a/sdljpd b/sdljpd index c0115ff..0c83aee 100755 Binary files a/sdljpd and b/sdljpd differ diff --git a/sdljpd.c b/sdljpd.c index cffc33a..b0de809 100644 --- a/sdljpd.c +++ b/sdljpd.c @@ -849,6 +849,7 @@ int main( int argc, char **argv ) /* Lock Buzzers */ case SDLK_l: lockbz = TRUE; + system("./set_led 0 0 0 0"); break; /* Unlock Buzzers */ @@ -859,8 +860,8 @@ int main( int argc, char **argv ) /* Reset playing field */ case SDLK_r: - lockbz = FALSE; - system("./set_led 1 1 1 0"); + /* lockbz = FALSE; + system("./set_led 1 1 1 0"); */ inp = FALSE; enp = FALSE; break; diff --git a/sdljpd.c~ b/sdljpd.c~ index a936e63..dfa2465 100644 --- a/sdljpd.c~ +++ b/sdljpd.c~ @@ -125,6 +125,8 @@ void Quit( int returnCode ) Mix_FreeMusic(music); music = NULL; + system("./set_led 0 0 0 0"); + SDL_JoystickClose(joystick); SDL_FreeSurface(panel); @@ -847,6 +849,7 @@ int main( int argc, char **argv ) /* Lock Buzzers */ case SDLK_l: lockbz = TRUE; + system("./set_led 0 0 0 0"); break; /* Unlock Buzzers */