Skip to content

Commit

Permalink
Merge pull request letscontrolit#4871 from TD-er/bugfix/4870_empty_cu…
Browse files Browse the repository at this point in the history
…stom_build

[Build] Fix compile error when using default Custom.h (letscontrolit#4870)
  • Loading branch information
TD-er authored Nov 8, 2023
2 parents 6b26917 + dc3bca5 commit 6a399a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/src/Helpers/_CPlugin_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ const CPlugin_ptr_t PROGMEM CPlugin_ptr[] =
constexpr size_t ProtocolIndex_to_CPlugin_id_size = sizeof(ProtocolIndex_to_CPlugin_id);

// Highest CPlugin ID included in the build
constexpr size_t Highest_CPlugin_id = ProtocolIndex_to_CPlugin_id[ProtocolIndex_to_CPlugin_id_size - 1];
constexpr size_t Highest_CPlugin_id = ProtocolIndex_to_CPlugin_id_size == 0 ? 0 : ProtocolIndex_to_CPlugin_id[ProtocolIndex_to_CPlugin_id_size - 1];

constexpr size_t CPlugin_id_to_ProtocolIndex_size = Highest_CPlugin_id + 1;

Expand Down

0 comments on commit 6a399a8

Please sign in to comment.