We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcaf7ca commit 57108faCopy full SHA for 57108fa
Firmware/RTK_Everywhere/menuCommands.ino
@@ -2681,9 +2681,14 @@ bool commandIndexFill()
2681
}
2682
commandCount += COMMAND_COUNT - 1;
2683
2684
- // Allocate the command array
+ // Allocate the command array. Never freed
2685
length = commandCount * sizeof(*commandIndex);
2686
- commandIndex = (int16_t *)malloc(length);
+
2687
+ if (online.psram == true)
2688
+ commandIndex = (int16_t *)ps_malloc(length);
2689
+ else
2690
+ commandIndex = (int16_t *)malloc(length);
2691
2692
if (!commandIndex)
2693
{
2694
// Failed to allocate the commandIndex
0 commit comments