Skip to content

Commit

Permalink
Move const override to the cpp file. This avoids violating ODR.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Dec 3, 2023
1 parent 4f44bae commit 6f8108c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions arduino/OpenMRNLite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

#include <OpenMRNLite.h>

OVERRIDE_CONST(gridconnect_bridge_max_incoming_packets, 5);

namespace openmrn_arduino {

OpenMRN::OpenMRN(openlcb::NodeID node_id)
Expand Down
2 changes: 0 additions & 2 deletions arduino/OpenMRNLite.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ constexpr UBaseType_t OPENMRN_TASK_PRIORITY = ESP_TASK_TCPIP_PRIO - 1;

#endif

OVERRIDE_CONST(gridconnect_bridge_max_incoming_packets, 5);

namespace openmrn_arduino
{

Expand Down

0 comments on commit 6f8108c

Please sign in to comment.