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:
@@ -396,7 +396,7 @@ void lcdDrawTextAlignedLeft(coord_t y, const char * s)
|
||||
}
|
||||
|
||||
#if !defined(BOOT)
|
||||
void lcdDrawTextAtIndex(coord_t x, coord_t y, const char** s,uint8_t idx, LcdFlags flags)
|
||||
void lcdDrawTextAtIndex(coord_t x, coord_t y, const char *const *s,uint8_t idx, LcdFlags flags)
|
||||
{
|
||||
lcdDrawSizedText(x, y, s[idx], UINT8_MAX, flags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user