encslave

Dependencies:   mbed

Revision:
1:7945cd701d0d
Parent:
0:6322c2c7148c
Child:
2:2ee241819861
diff -r 6322c2c7148c -r 7945cd701d0d main.cpp
--- a/main.cpp	Sat Dec 07 00:39:45 2019 +0000
+++ b/main.cpp	Sat Dec 07 00:42:48 2019 +0000
@@ -34,8 +34,6 @@
     slave.address(1);
     while(1) {
           
-           //
-//           // pc.printf("%d\n\r",deg);
           receive = slave.receive();
            //cntが偶数の場合の処理
   if (cnt % 2 == 0) {
@@ -74,7 +72,7 @@
       sent_data=deg;
      CS=1;
       
-      if(sent_data)
+
       if(receive){
       
         msg[0]=sent_data;