Skip to content

Commit 9b2b3de

Browse files
committed
v2.1.2
- Add empty rprint* macros, if debug is disabled
1 parent 026ce18 commit 9b2b3de

5 files changed

Lines changed: 31 additions & 5 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ Please add an issue for problems or suggestion.
8787

8888
## News
8989

90+
- RemoteDebugApp
91+
92+
- An web app to use for debugging in web browser, instead telnet client,
93+
in development now, soon it will release.
94+
9095
- Version 2.1.1
9196

9297
- Now __RemoteDebug__ have a code converter, for help you to convert your codes:
@@ -484,6 +489,10 @@ In advanced sample, I used WifiManager library, ArduinoOTA and mDNS, please see
484489
485490
## Releases
486491
492+
### 2.1.2 - 2019-03-08
493+
494+
- Add empty rprint* macros, if debug is disabled
495+
487496
### 2.1.1 - 2019-03-06
488497
489498
- Create option DEBUG_DISABLE_AUTO_FUNC

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "git",
88
"url": "https://github.com/JoaoLopesF/RemoteDebug.git"
99
},
10-
"version": "2.1.1",
10+
"version": "2.1.2",
1111
"frameworks": "arduino",
1212
"platforms": "*"
1313
}

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=RemoteDebug
2-
version=2.1.1
2+
version=2.1.2
33
author=Joao Lopes
44
maintainer=Joao Lopes
55
sentence=Remote debug over telnet for Arduino ESP8266 and ESP32

src/RemoteDebug.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*
99
* Versions:
1010
* ------ ---------- -----------------
11+
* 2.1.2 2018-03-08 Add empty rprint* macros, if debug is disabled
1112
* 2.1.1 2019-03-06 Create option DEBUG_DISABLE_AUTO_FUNC
1213
* Create macros to be used for code converter: rprint and rprintln
1314
* RemoteDebug now have an code converters to help migrate codes
@@ -70,6 +71,10 @@
7071

7172
#ifndef DEBUG_DISABLED
7273

74+
///// Defines
75+
76+
#define VERSION "2.1.2"
77+
7378
///// Includes
7479

7580
#include "stdint.h"
@@ -106,8 +111,6 @@ bool system_update_cpu_freq(uint8_t freq);
106111

107112
#endif
108113

109-
#define VERSION "2.1.1"
110-
111114
#include "RemoteDebug.h" // This library
112115

113116
#ifdef ALPHA_VERSION // In test, not good yet

src/RemoteDebug.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,20 @@ class RemoteDebug: public Print
459459
#define debugW(...)
460460
#define debugE(...)
461461

462+
#define rprintA(...)
463+
#define rprintV(...)
464+
#define rprintD(...)
465+
#define rprintI(...)
466+
#define rprintW(...)
467+
#define rprintE(...)
468+
469+
#define rprintAln(...)
470+
#define rprintVln(...)
471+
#define rprintDln(...)
472+
#define rprintIln(...)
473+
#define rprintWln(...)
474+
#define rprintEln(...)
475+
462476
#define debugHandle()
463477

464478
// Note all of Debug. codes need uses "#ifndef DEBUG_DISABLED"
@@ -476,4 +490,4 @@ class RemoteDebug: public Print
476490

477491
#endif // H
478492

479-
/// End
493+
//////// End

0 commit comments

Comments
 (0)