@@ -79,7 +79,13 @@ extern "C" {
7979#define CARD_RESET_DRAIN_MS 500
8080/**************************************************************************/
8181/*!
82- @brief The number of times we will try to get in sync before giving up.
82+ @brief The number of times we will retry a request before giving up.
83+ */
84+ /**************************************************************************/
85+ #define CARD_REQUEST_RETRIES_ALLOWED 5
86+ /**************************************************************************/
87+ /*!
88+ @brief The number of times we will retry getting in sync before giving up.
8389*/
8490/**************************************************************************/
8591#define CARD_RESET_SYNC_RETRIES 10
@@ -127,7 +133,7 @@ bool NoteIsDebugOutputActive(void);
127133// Utilities
128134void n_htoa32 (uint32_t n , char * p );
129135void n_htoa16 (uint16_t n , unsigned char * p );
130- uint64_t n_atoh (char * p , int maxlen );
136+ uint64_t n_atoh (char * p , int maxLen );
131137
132138// COBS Helpers
133139uint32_t cobsDecode (uint8_t * ptr , uint32_t length , uint8_t eop , uint8_t * dst );
@@ -210,9 +216,15 @@ extern const char *c_badbinerr;
210216#ifdef NOTE_NODEBUG
211217#define _Debug (x )
212218#define _Debugln (x )
219+ #define _DebugIntln (x , y )
220+ #define _DebugWithLevel (x , y )
221+ #define _DebugWithLevelLn (x , y )
213222#else
214223#define _Debug (x ) NoteDebug(x)
215224#define _Debugln (x ) NoteDebugln(x)
225+ #define _DebugIntln (x , y ) NoteDebugIntln(x, y)
226+ #define _DebugWithLevel (x , y ) NoteDebugWithLevel(x, y)
227+ #define _DebugWithLevelLn (x , y ) NoteDebugWithLevelLn(x, y)
216228#endif
217229
218230// End of C-callable functions
0 commit comments