File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,19 @@ class SoftwareSerial : public Stream
10
10
private:
11
11
int mPinIn ;
12
12
int mPinOut ;
13
- bool mInverse ;
14
13
bool mIsListening ;
15
14
GodmodeState* mState ;
16
15
unsigned long mOffset ; // bits to offset stream
17
16
bool bigEndian;
18
17
19
18
public:
20
- SoftwareSerial (uint8_t receivePin, uint8_t transmitPin, bool inverse_logic = false ) {
19
+ // @TODO this is public for now to avoid a compiler warning
20
+ bool mInvertLogic ; // @TODO not sure how to implement yet
21
+
22
+ SoftwareSerial (uint8_t receivePin, uint8_t transmitPin, bool invertLogic = false ) {
21
23
mPinIn = receivePin;
22
24
mPinOut = transmitPin;
25
+ mIsListening = invertLogic;
23
26
mIsListening = false ;
24
27
mOffset = 0 ; // godmode starts with 1 bit in the queue
25
28
mState = GODMODE ();
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ class Test
113
113
static const int RESULT_FAIL = 2 ;
114
114
static const int RESULT_SKIP = 3 ;
115
115
116
- const inline char *name () { return mName ; }
117
- const inline int result () { return mResult ; }
116
+ inline const char *name () const { return mName ; }
117
+ inline int result () const { return mResult ; }
118
118
119
119
Test (const char * _name) : mName (_name) {
120
120
mResult = RESULT_NONE;
You can’t perform that action at this time.
0 commit comments