Просмотр исходного кода

Disable autosync in scripts and programs. Is now responsibility of user as it takes very long to sync and quickly becomes annoying.

bart 7 месяцев назад
Родитель
Сommit
82e6f5e60e
5 измененных файлов с 8 добавлено и 8 удалено
  1. 2 2
      BCC/initBDOS.sh
  2. 2 2
      BCC/syncCsourceFiles.sh
  3. 1 1
      BCC/userBDOS/mkdir.c
  4. 1 1
      BCC/userBDOS/mkfile.c
  5. 2 2
      BCC/userBDOS/rm.c

+ 2 - 2
BCC/initBDOS.sh

@@ -11,7 +11,7 @@ echo "cd /" | python3 "$MAINPATH/../Programmer/sendCommand.py"
 sh uploadToBDOS.sh userBDOS/mkdir.c mkdir
 echo "mkdir /bin" | python3 "$MAINPATH/../Programmer/sendCommand.py"
 echo "cd /bin" | python3 "$MAINPATH/../Programmer/sendCommand.py"
-sleep 0.5
+#sleep 0.5
 
 # Upload all the programs in a very hardcoded way given the directory structure of the project
 cd userBDOS
@@ -24,7 +24,7 @@ do
     # Remove leading ./
     j="${j#./}"
     bash uploadToBDOS.sh userBDOS/$j $FNAME
-    sleep 0.5
+    #sleep 0.5
 done
 
 echo "rm /mkdir" | python3 "$MAINPATH/../Programmer/sendCommand.py"

+ 2 - 2
BCC/syncCsourceFiles.sh

@@ -31,8 +31,8 @@ do
     cd $MAINPATH/../Programmer
     sh sendTextFile.sh $MAINPATH/userBDOS/$i
 
-    echo "sync" | python3 "$MAINPATH/../Programmer/sendCommand.py"
+    #echo "sync" | python3 "$MAINPATH/../Programmer/sendCommand.py"
 
-    sleep 2
+    #sleep 2
 
 done

+ 1 - 1
BCC/userBDOS/mkdir.c

@@ -36,7 +36,7 @@ int main()
   // Create directory
   if (fs_mkdir(absolute_path))
   {
-    fs_syncflash();
+    //fs_syncflash();
   }
   else
   {

+ 1 - 1
BCC/userBDOS/mkfile.c

@@ -36,7 +36,7 @@ int main()
   // Create file
   if (fs_mkfile(absolute_path))
   {
-    fs_syncflash();
+    //fs_syncflash();
   }
   else
   {

+ 2 - 2
BCC/userBDOS/rm.c

@@ -110,7 +110,7 @@ int main()
     // File
     if (fs_delete(absolute_path))
     {
-      fs_syncflash();
+      //fs_syncflash();
     }
     else
     {
@@ -121,7 +121,7 @@ int main()
   {
     // Directory
     remove_dir(absolute_path);
-    fs_syncflash();
+    //fs_syncflash();
   }
 
   return 'q';