Skip to content

Commit 6be3be0

Browse files
authored
chore: eliminate i2c test method (#48)
1 parent 90fdd42 commit 6be3be0

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

keywords.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ FUNCTIONS
88
==================================
99
begin KEYWORD2
1010
setDebugOutputStream KEYWORD2
11-
i2cTest KEYWORD2
1211
newCommand KEYWORD2
1312
newRequest KEYWORD2
1413
sendRequest KEYWORD2

src/Notecard.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ namespace
147147
}
148148
}
149149

150-
// 2018-06 ST Microelectronics has a HAL bug that causes an infinite hang.
151-
// This code enables us to exercise that code path to test the state of the bug.
152-
int _readLengthAdjustment = 0;
153-
154150
/***************************************************************************
155151
PUBLIC FUNCTIONS
156152
***************************************************************************/
@@ -228,20 +224,6 @@ void Notecard::clearDebugOutputStream()
228224
NoteSetFnDebugOutput(nullptr);
229225
}
230226

231-
/**************************************************************************/
232-
/*!
233-
@brief Adjust the I2C read length.
234-
Method enabling a developer to test the state of a known issue
235-
with the I2C HAL on some ST Microelectronics boards.
236-
@param Adjustment
237-
The read length to override.
238-
*/
239-
/**************************************************************************/
240-
void Notecard::i2cTest(int Adjustment)
241-
{
242-
_readLengthAdjustment = Adjustment;
243-
}
244-
245227
/**************************************************************************/
246228
/*!
247229
@brief Creates a new request object for population by the host.

src/Notecard.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ class Notecard
126126
void begin(HardwareSerial &serial, int speed = 9600);
127127
void setDebugOutputStream(Stream &dbgserial);
128128
void clearDebugOutputStream(void);
129-
void i2cTest(int Adjustment);
130129
J *newRequest(const char *request);
131130
J *newCommand(const char *request);
132131
bool sendRequest(J *req);

0 commit comments

Comments
 (0)