|
44 | 44 |
|
45 | 45 | #include "NoteTime.h"
|
46 | 46 |
|
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 |
| - |
56 | 47 | /***************************************************************************
|
57 | 48 | SINGLETON ABSTRACTION (REQUIRED BY NOTE-C)
|
58 | 49 | ***************************************************************************/
|
@@ -254,15 +245,6 @@ void Notecard::begin(NoteSerial * noteSerial_)
|
254 | 245 | if (noteSerial) {
|
255 | 246 | NoteSetFnSerial(noteSerialReset, noteSerialTransmit,
|
256 | 247 | 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 |
| - } |
266 | 248 | } else {
|
267 | 249 | NoteSetFnSerial(nullptr, nullptr, nullptr, nullptr);
|
268 | 250 | }
|
|
0 commit comments