Initial version

Dependencies:   MODSERIAL mbed

Revision:
1:3687c7cb0648
Parent:
0:3843c26cd5fd
Child:
2:60fc72e8ff66
--- a/main.cpp	Thu Oct 17 08:29:57 2013 +0000
+++ b/main.cpp	Thu Oct 17 09:23:51 2013 +0000
@@ -64,7 +64,7 @@
         {   sig_out_biceps = sqrt(square_biceps/count);
             mean_biceps = sum_biceps/count;
             count= 0; square_biceps = 0; sum_biceps = 0; // en neem de RMS als er genoeg zijn geteld, stuur die door, en reset sqaure en count
-            if(pc.rxBufferGetSize(0)-pc.rxBufferGetCount() > 30)
+            if(pc.txBufferGetSize(0)-pc.txBufferGetCount() > 30)
                 pc.printf("%.6f\n",sig_out_biceps);
          }
 }