[tuxdroid-svn] r506 - firmware/tuxaudio/branches/audio_cleanup
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2007-09-10 09:25:24
|
Author: Paul_R Date: 2007-09-10 11:25:22 +0200 (Mon, 10 Sep 2007) New Revision: 506 Modified: firmware/tuxaudio/branches/audio_cleanup/flash.c Log: * Corrected bug in the playSound function - with rev 505, if you play an incorrect sound (for ex. tux.cmd.sound_play(0)), you cannot play another sound. Modified: firmware/tuxaudio/branches/audio_cleanup/flash.c =================================================================== --- firmware/tuxaudio/branches/audio_cleanup/flash.c 2007-09-10 08:59:09 UTC (rev 505) +++ firmware/tuxaudio/branches/audio_cleanup/flash.c 2007-09-10 09:25:22 UTC (rev 506) @@ -136,9 +136,15 @@ sounds_stored = read_data(0x00, 0x00, 0x00); if (sounds_stored == 0xFF) /* if unprogrammed we have 0xFF stored in flash */ + { + flashPlay = 0; return; + } if (!nsound || (nsound > sounds_stored)) /* check the limits */ + { + flashPlay = 0; return; + } count = 1; adp1 = 0x00; |