ropg / ezTime

ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Global Scope Enumerations Prevent Compilation

Daedelos opened this issue · comments

Duplicate global scope enumerations in libraries (or own code) provent compilation.

ezTime.h enum at line 69 -

typedef enum {
NONE,
ERROR,
INFO,
DEBUG
} ezDebugLevel_t;

confilcts with NONE in ESP32SSDP.h

ESP32SSDP.h has a global scope enumeration at line 51 -

typedef enum {
NONE,
SEARCH,
NOTIFY
} ssdp_method_t;

The global scope enumeration elements (NONE, ERROR, INFO, DEBUG) will conflict with any other variables or other enums and prevent compilation.

error: 'NONE' conflicts with a previous declaration is raised by the compiler in my case