Lab3-05_create_satcode_step4_lite_Q

Dependencies:   mbed HEPTA_CDH_lite HEPTA_EPS_lite

Files at this revision

API Documentation at this revision

Comitter:
heptasat2021
Date:
Mon Aug 23 07:51:13 2021 +0000
Parent:
2:b30e3a46ae2b
Commit message:
For Hepta-Sat Lite

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Aug 20 12:28:06 2021 +0000
+++ b/main.cpp	Mon Aug 23 07:51:13 2021 +0000
@@ -66,25 +66,10 @@
                     wait_ms(1000);
                 }
             }else if(rcmd == 'b') {
-                char str[100];
-                mkdir("/sd/mydir", 0777);
-                FILE *fp = fopen("/sd/mydir/satdata.txt","w");
-                if(fp == NULL) {
-                    error("Could not open file for write\r\n");
-                }
-                for(int i = 0; i < 10; i++) {
-                    eps.vol(&batvol);
-                    fprintf(fp,"%f\r\n",batvol);
-                    condition = 1;
-                    wait_ms(1000);
-                }
-                fclose(fp);
-                fp = fopen("/sd/mydir/satdata.txt","r");
-                for(int i = 0; i < 10; i++) {
-                    fgets(str,100,fp);
-                    gs.puts(str);
-                }
-                fclose(fp);
+ 
+ 
+ 
+
             }
             initialize(); //initializing
         }