Skip to content

Commit

Permalink
- Wrap debug defs
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsharma82 committed Sep 23, 2023
1 parent d16fd24 commit c08acad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ElegantOTA.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ _____ _ _ ___ _____ _
#define ELEGANTOTA_USE_ASYNC_WEBSERVER 0
#endif

#define ELEGANTOTA_DEBUG 1
#define UPDATE_DEBUG 1
#ifndef ELEGANTOTA_DEBUG
#define ELEGANTOTA_DEBUG 0
#endif

#ifndef UPDATE_DEBUG
#define UPDATE_DEBUG 0
#endif

#if ELEGANTOTA_DEBUG
#define ELEGANTOTA_DEBUG_MSG(x) Serial.printf("%s %s", "[ElegantOTA] ", x)
Expand Down

0 comments on commit c08acad

Please sign in to comment.