clock

Dependencies:   mbed

Revision:
3:b8766d623f01
Parent:
2:e54d9d87c6cb
--- a/myScope/mybc95.cpp	Mon May 14 00:04:42 2018 +0000
+++ b/myScope/mybc95.cpp	Tue May 22 09:10:05 2018 +0000
@@ -104,13 +104,13 @@
     }
     if(bc95Act::stpSe==2) CheckOK(200,1,10);             //10是最大的查询次数
     if(bc95Act::stpSe==250){                            //规范250是失败
-        know::polSta[15]="2";
+        know::polSta[15]='2';
         bc95Act::stpSe=0;
     } 
     if(bc95Act::stpSe==200){                           //规范200是成功,
         bc95Act::stpSe=0;
         //know::magtsk();   
-        know::polSta[15]="1";
+        know::polSta[15]='1';
     }   
     return;
 }
@@ -192,8 +192,8 @@
 
 void bc95Act::CheckOK(int Nexstp,int Lastp,int maxstp)
 {
-    if(know::polSta[17]=="1"){  
-        know::polSta[17]="0";
+    if(know::polSta[17]=='1'){  
+        know::polSta[17]='0';
         bc95Act::stpSe=Nexstp;
         bc95Act::cntlink=0;
     }
@@ -208,7 +208,7 @@
 {
     know::uart3.printf("AT+NSOCR=DGRAM,17,9090,1\r\n");
     wait_ms(50);
-    know::uart3.printf("%s",know::polDat[2].c_str());
+    know::uart3.printf("%s",know::polDat[2]);
     wait_ms(50);
     know::uart3.printf("AT+NSOCL=0\r\n");
     wait_ms(50);
@@ -224,7 +224,7 @@
 void bc95Act::getISR(void)
 {
     char buf;
-
+    
     buf=know::uart3.getc();
     bc95Act::buf[cnt]=buf;
     cnt++;