electronics-lab / Mbed 2 deprecated CanSat2018_5

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
ponpoko1939
Date:
Mon Aug 13 08:20:44 2018 +0000
Parent:
1:342818b81499
Commit message:
?????????????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 342818b81499 -r b257a71f0655 main.cpp
--- a/main.cpp	Sun Aug 12 06:42:02 2018 +0000
+++ b/main.cpp	Mon Aug 13 08:20:44 2018 +0000
@@ -261,6 +261,7 @@
       } 
     }
   }
+  __disable_irq();  //割り込み禁止
 }
 
     //ヒューベニの公式で距離出す
@@ -334,4 +335,5 @@
         }
         */
         pc.printf("%d\n\r",(int)degree);
+        __enable_irq();     //割り込み許可
 }
\ No newline at end of file