|
| 1 | +/* |
| 2 | + GSMDebug.h |
| 3 | + Copyright (c) 2021 Arduino SA. All right reserved. |
| 4 | +
|
| 5 | + This library is free software; you can redistribute it and/or |
| 6 | + modify it under the terms of the GNU Lesser General Public |
| 7 | + License as published by the Free Software Foundation; either |
| 8 | + version 2.1 of the License, or (at your option) any later version. |
| 9 | +
|
| 10 | + This library is distributed in the hope that it will be useful, |
| 11 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | + Lesser General Public License for more details. |
| 14 | +
|
| 15 | + You should have received a copy of the GNU Lesser General Public |
| 16 | + License along with this library; if not, write to the Free Software |
| 17 | + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | +*/ |
| 19 | + |
| 20 | +#ifndef GSMDEBUG_H |
| 21 | +#define GSMDEBUG_H |
| 22 | + |
| 23 | +#if defined __has_include |
| 24 | + #if __has_include ("Arduino_DebugUtils.h") |
| 25 | + #include "Arduino_DebugUtils.h" |
| 26 | + #define GSM_DEBUG_ENABLE 1 |
| 27 | + #else |
| 28 | + #define DEBUG_ERROR(fmt, ...) |
| 29 | + #define DEBUG_WARNING(fmt, ...) |
| 30 | + #define DEBUG_INFO(fmt, ...) |
| 31 | + #define DEBUG_DEBUG(fmt, ...) |
| 32 | + #define DEBUG_VERBOSE(fmt, ...) |
| 33 | + #define GSM_DEBUG_ENABLE 0 |
| 34 | + #endif |
| 35 | +#else |
| 36 | + #define DEBUG_ERROR(fmt, ...) |
| 37 | + #define DEBUG_WARNING(fmt, ...) |
| 38 | + #define DEBUG_INFO(fmt, ...) |
| 39 | + #define DEBUG_DEBUG(fmt, ...) |
| 40 | + #define DEBUG_VERBOSE(fmt, ...) |
| 41 | + #define GSM_DEBUG_ENABLE 0 |
| 42 | +#endif |
| 43 | + |
| 44 | +#endif /* GSMDEBUG_H*/ |
0 commit comments