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:
@@ -140,7 +140,7 @@ void MultiRfProtocols::RfProto::fillSubProtoList(const char* str, int n, int len
|
||||
}
|
||||
}
|
||||
|
||||
void MultiRfProtocols::RfProto::fillSubProtoList(const char** str, int n)
|
||||
void MultiRfProtocols::RfProto::fillSubProtoList(const char *const *str, int n)
|
||||
{
|
||||
subProtos.reserve(n);
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ class MultiRfProtocols
|
||||
bool parse(const uint8_t* data, uint8_t len);
|
||||
|
||||
// array of strings
|
||||
void fillSubProtoList(const char** str, int n);
|
||||
void fillSubProtoList(const char *const *str, int n);
|
||||
|
||||
// fixed length strings concatenated
|
||||
void fillSubProtoList(const char* str, int n, int len);
|
||||
|
||||
Reference in New Issue
Block a user