Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: kiokuryoku_game escapeFromYou junirobo_sample001 ROBOX_Sample_IRcon ... more
Revision 11:561f2d3f7c4b, committed 2016-10-09
- Comitter:
- RBH
- Date:
- Sun Oct 09 04:13:14 2016 +0000
- Parent:
- 10:24155220eeda
- Child:
- 12:f2b80b003d6d
- Commit message:
- stop?empity()?????
Changed in this revision
| beep_sound.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/beep_sound.cpp Sat Oct 08 19:28:44 2016 +0000
+++ b/beep_sound.cpp Sun Oct 09 04:13:14 2016 +0000
@@ -20,7 +20,9 @@
void beep_sound::stop(){
m_pwm->write(0.0f);
// キューが空でなければ次の音へ
- if(otoQue.front().time_s != -1){
+ if(otoQue.empity() == true){
+ playting = false;
+ }else if(otoQue.front().time_s != -1){
playing = true;
beep_sound::playContinue();
}else if(otoQue.front().time_s == -1){