fix(B&W): Avoid having constants in SRAM (#2993)

fix constness to avoid having constants in data segment 
.... and thus free some precious RAM
This commit is contained in:
Raphael Coeffic
2023-01-18 20:12:35 +10:00
committed by GitHub
parent acd44516d0
commit acd95dfad4
22 changed files with 176 additions and 172 deletions
+2 -2
View File
@@ -108,7 +108,7 @@ extern uint32_t NV14internalModuleFwVersion;
// When using packed, the pointer in here end up not being aligned, which clang and gcc complain about
// Keep the order of the fields that the so that the size stays small
struct mm_options_strings {
static const char* options[];
static const char* const options[];
};
const uint8_t getMaxMultiOptions();
@@ -118,7 +118,7 @@ struct mm_protocol_definition {
uint8_t maxSubtype;
bool failsafe;
bool disable_ch_mapping;
const char** subTypeString;
const char* const* subTypeString;
const char* optionsstr;
};