File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ class Debug : public Stream {
370
370
* Print the given expression to the debug stream.
371
371
* @param[in] expr expression.
372
372
*/
373
- #define OBSERVE (expr ) OBSERVE_IF(expr, true )
373
+ #define OBSERVE (expr ) OBSERVE_IF(true ,expr )
374
374
375
375
/* *
376
376
* Register the given variable in the debug handler. The debug handler
Original file line number Diff line number Diff line change 46
46
#include < Debug.h>
47
47
48
48
// Define to allow debug shell on Serial1 (Arduino Mega2560)
49
- #define USE_SERIAL1
49
+ // #define USE_SERIAL1
50
50
51
51
namespace A {
52
52
@@ -80,6 +80,7 @@ namespace A {
80
80
{
81
81
REGISTER (i);
82
82
CHECK_STACK ();
83
+ OBSERVE (i);
83
84
if (i > 0 ) return (e (i - 1 ) * i);
84
85
return (1 );
85
86
}
@@ -148,4 +149,3 @@ void loop()
148
149
// Keep up with the user
149
150
delay (500 );
150
151
}
151
-
You can’t perform that action at this time.
0 commit comments