timer reference. on 1114-mbed

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kazu_zamasu
Date:
Wed Jan 28 14:07:07 2015 +0000
Parent:
0:2a4387a90647
Commit message:
rev1

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 2a4387a90647 -r 57ee27a9df19 main.cpp
--- a/main.cpp	Wed Jan 28 14:02:25 2015 +0000
+++ b/main.cpp	Wed Jan 28 14:07:07 2015 +0000
@@ -12,8 +12,8 @@
  
 DLEDG = !TSG;
 if ( TSG == 1 && 0 != TSGtimer.read_ms()){
+TSGtimer.stop();
 TSGtimer.reset();
-TSGtimer.stop();
 }
 else if ( TSG == 0){
 TSGtimer.start();