Skip to content

Commit

Permalink
Throw an error if CORE_DEBUG_LEVEL is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mairas committed May 25, 2024
1 parent 75633b3 commit 231d4df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sensesp.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"ESP8266 isn't supported by SensESP version 2. To compile an existing project, add @^1.0.0 to the SensESP depdenency in platformio.ini."
#endif

#ifndef CORE_DEBUG_LEVEL
#error "SensESP v3 requires CORE_DEBUG_LEVEL to be defined. See https://signalk.org/SensESP/pages/migration/."
#endif

namespace sensesp {

// Typically, pulling a namespace into another is something to be avoided,
Expand Down

0 comments on commit 231d4df

Please sign in to comment.