![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Microduino的cube小车。
Diff: Microduino_Protocol_HardSer.h
- Revision:
- 4:0670023d3f36
- Parent:
- 3:e4ac7c1a14de
--- a/Microduino_Protocol_HardSer.h Fri May 27 01:44:31 2016 +0000 +++ b/Microduino_Protocol_HardSer.h Sat May 28 05:09:18 2016 +0000 @@ -22,14 +22,14 @@ class Protocol { public: - Protocol(PRO_PORT *ser , uint8_t _channel) : _timer(),num(0),time(0),sta(false),error(false){ // Constructor when using HardwareSerial + Protocol(PRO_PORT *ser , uint8_t _channel) : num(0),time(0),sta(false),error(false){ // Constructor when using HardwareSerial // common_init(); // Set everything to common state, then... channel = _channel; num = 0; sta = false; error = false; P_Serial = ser; // ...override P_Serial with value passed. - _timer.start(); + //_timer.start(); } void begin(uint16_t _baud); uint8_t parse(uint16_t* _data, bool _mod); @@ -46,7 +46,7 @@ bool available(bool _sta); PRO_PORT *P_Serial; - Timer _timer; + };