1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-30 03:26:13 +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++; _mark++;
if (_mark==_len) _mark=0; if (_mark==_len) _mark=0;
_buffer[_mark]=lowByte(_count); _buffer[_mark]=lowByte(_count);
{ char s[_count+2]; // Enable this for debugging only, it requires A LOT of RAM
strncpy(s, (const char*)&(_buffer[_mark+1]), _count); //{ char s[_count+2];
s[_count]=0; // strncpy(s, (const char*)&(_buffer[_mark+1]), _count);
//DIAG(F("RS commit count=%d core %d \"%s\""), _count, xPortGetCoreID(), s); // s[_count]=0;
} // DIAG(F("RS commit count=%d core %d \"%s\""), _count, xPortGetCoreID(), s);
//}
_ringClient = NO_CLIENT; _ringClient = NO_CLIENT;
return true; // commit worked return true; // commit worked
} }

View File

@ -4,7 +4,9 @@
#include "StringFormatter.h" #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 // 4.2.5 Make GETFLASHW code more universal
// FIX: Withrottle roster index // FIX: Withrottle roster index
// Ethernet start improvement and link detection // Ethernet start improvement and link detection