terry LAI / Mbed 2 deprecated ESDC2014-pwm

Dependencies:   mbed

Fork of ESDC2014 by terry LAI

Revision:
4:a377ecb9364f
Parent:
2:442902ec3aa1
Child:
5:098e6a44bd94
--- a/buzzer.cpp	Thu Jul 03 14:52:44 2014 +0000
+++ b/buzzer.cpp	Fri Jul 04 13:05:15 2014 +0000
@@ -68,23 +68,23 @@
     flag=0;
 }
 
-void Buzzer::check_time_out()
-{
-    if(flag == 1)
-    {
-        ON();
-        wait(5);
-        mbed_reset();
-    }
-    else
-    {
-        OFF();
-    }
-}
+//void Buzzer::check_time_out()
+//{
+//    if(flag == 1)
+//    {
+//        ON();
+//        wait(3);
+//        mbed_reset();
+//    }
+//    else
+//    {
+//        OFF();
+//    }
+//}
 
-void Buzzer::time_out_init()
-{
-    setFlag();
-    time_out.detach();
-    time_out.attach(this, &Buzzer::check_time_out, TIME_OUT);
-}
+//void Buzzer::time_out_init()
+//{
+//    setFlag();
+//    time_out.detach();
+//    time_out.attach(this, &Buzzer::check_time_out, TIME_OUT);
+//}