1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

Remove RAM thief

This commit is contained in:
Harald Barth 2022-11-18 20:19:53 +01:00
parent 01e5d49332
commit f4aa572df2
3 changed files with 10 additions and 7 deletions

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-202211152314Z"
#define GITHUB_SHA "devel-202211181919Z"

View File

@ -189,11 +189,12 @@ bool RingStream::commit() {
_mark++;
if (_mark==_len) _mark=0;
_buffer[_mark]=lowByte(_count);
{ char s[_count+2];
strncpy(s, (const char*)&(_buffer[_mark+1]), _count);
s[_count]=0;
//DIAG(F("RS commit count=%d core %d \"%s\""), _count, xPortGetCoreID(), s);
}
// Enable this for debugging only, it requires A LOT of RAM
//{ char s[_count+2];
// strncpy(s, (const char*)&(_buffer[_mark+1]), _count);
// s[_count]=0;
// DIAG(F("RS commit count=%d core %d \"%s\""), _count, xPortGetCoreID(), s);
//}
_ringClient = NO_CLIENT;
return true; // commit worked
}

View File

@ -4,7 +4,9 @@
#include "StringFormatter.h"
#define VERSION "4.2.5"
#define VERSION "4.2.6"
// 4.2.6 FIX: Remove RAM thief
// FIX: ADC port 8-15 fix
// 4.2.5 Make GETFLASHW code more universal
// FIX: Withrottle roster index
// Ethernet start improvement and link detection