Skip to content

Commit 1334c4f

Browse files
committed
chore: Remove chatter from begin method (serial)
1 parent d3d871c commit 1334c4f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Notecard.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,6 @@
4444

4545
#include "NoteTime.h"
4646

47-
// AUX serial throttling is based on the Arduino define `SERIAL_RX_BUFFER_SIZE`.
48-
// Unfortunately, some platforms do NOT specify the define. In this case, 64
49-
// bytes is selected as the default value, because it is a common buffer size
50-
// across several platforms.
51-
#ifndef SERIAL_RX_BUFFER_SIZE
52-
#define SERIAL_RX_BUFFER_SIZE 64
53-
#pragma message "\n\x1B[0;33mSERIAL_RX_BUFFER_SIZE has not been specified for this platform!\n\nThe value is used to set the default Notecard AUX Serial write speeds.\nA value (" NOTE_C_STRINGIZE(SERIAL_RX_BUFFER_SIZE) ") has been specified on your behalf. Use the 'card.aux.serial'\nrequest to tailor the AUX Serial speed to your board and/or application.\nhttps://dev.blues.io/api-reference/notecard-api/card-requests/#card-aux-serial\x1B[0;0m"
54-
#endif
55-
5647
/***************************************************************************
5748
SINGLETON ABSTRACTION (REQUIRED BY NOTE-C)
5849
***************************************************************************/
@@ -254,15 +245,6 @@ void Notecard::begin(NoteSerial * noteSerial_)
254245
if (noteSerial) {
255246
NoteSetFnSerial(noteSerialReset, noteSerialTransmit,
256247
noteSerialAvailable, noteSerialReceive);
257-
258-
// Set the default debug serial throttling
259-
J *req = NoteNewRequest("card.aux.serial");
260-
if (req != NULL)
261-
{
262-
JAddIntToObject(req, "max", SERIAL_RX_BUFFER_SIZE - 1);
263-
JAddIntToObject(req, "ms", 1);
264-
NoteRequestWithRetry(req, 15);
265-
}
266248
} else {
267249
NoteSetFnSerial(nullptr, nullptr, nullptr, nullptr);
268250
}

0 commit comments

Comments
 (0)