p kj
/
MKS22-CubeFine
LPC824
Fork of CubeFine by
Diff: Protocol.h
- Revision:
- 2:7964622fb5a5
- Parent:
- 1:54a2d380f8c7
diff -r 54a2d380f8c7 -r 7964622fb5a5 Protocol.h --- a/Protocol.h Fri Jul 01 09:41:15 2016 +0000 +++ b/Protocol.h Mon Jul 04 07:17:39 2016 +0000 @@ -1,7 +1,7 @@ #include "Microduino_Protocol_HardSer.h" //BLE////////////////////// -Serial pc(D1, D0); +Serial pc(D3, D2); Protocol bleProtocol(&pc, TYPE_NUM); //软串口,校验数据类 @@ -35,16 +35,10 @@ case P_FINE: //DATA OK return true; case P_ERROR: //DATA ERROR -#ifdef BLE_SoftSerial - mySerial.stopListening(); - mySerial.listen(); -#endif + break; case P_TIMEOUT: //DATA TIMEOUT -#ifdef BLE_SoftSerial - mySerial.stopListening(); - mySerial.listen(); -#endif + break; } return false;