Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenMRNLite problem -- need to #undef DEFAULT #462

Merged
merged 2 commits into from
Nov 15, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/freertos_drivers/common/WifiDefs.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ enum class WlanState : uint8_t
UPDATE_DISPLAY = 20,
};

// This is needed when this file is included into a ESP32 OpenMRNLite
// application. The esp32 Arduino.h file defines DEFAULT as a macro
// constant and that breaks the compilation of of the WlanRole enum
// class below. RPH November 2020
#ifdef DEFAULT
#undef DEFAULT
#endif

/** Operating Role.
*/
enum class WlanRole : uint8_t
Expand Down