Jaspreet Singh / Mbed 2 deprecated fft_merge_main_codev1_FTPGTET

Dependencies:   SDFileSystem dspmodified mbed

Fork of fft_merge_main_codev1 by Testbed

Revision:
9:bf653429a581
Parent:
8:61686460d0e7
Child:
10:d6510de2e660
--- a/main.cpp	Sun Jan 25 09:43:36 2015 +0000
+++ b/main.cpp	Sun Jan 25 10:04:52 2015 +0000
@@ -37,7 +37,7 @@
 char filenamefft[100]   ="";
 char clk_response[100] ="";
 int m=0,mfinal;
-int date, month, year, hour, minute, second, temp = 0;
+int date, month, year, hour, minute, second,minuteold, secondold, temp = 0;
 unsigned long var = 0;
 unsigned long currentMillis = 0;
 uint8_t x=0,z=0,answer=0;
@@ -116,10 +116,12 @@
         if(attempt_cnt>4) break;
     }
     if(year>14&&year<21) {
-        if(timestamp!=timestampold) {
+        if((minute!=minuteold)||(second!=secondold)) {
             sprintf(timestampold,timestamp);
             //pc.printf("\r\nold time stamp is%s\r\n",timestampold);
-
+            minuteold=minute;
+            secondold=second;
+            
 
             sprintf(main_dir,"/sd/%s",sitename);
             sprintf(month_dir,"%s/%s%02d%02d",main_dir,sitename,year,month);
@@ -571,7 +573,7 @@
     while(1) {
         sampling();
         store();
-        FTP_Fun();
+        //FTP_Fun();
         loop_count++;
         if(loop_count%120==0) {
             loop_count=0;