1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 23:13:07 +01:00

Moved history buffers to PSRAM; extended buffer to 1920 values each (32 min.)

This commit is contained in:
Ulrich Meine
2025-08-26 23:21:36 +02:00
parent 851149bae6
commit 1abcb158ec
6 changed files with 18892 additions and 10 deletions

View File

@@ -35,6 +35,8 @@ RingBuffer<T>::RingBuffer(size_t size)
, is_Full(false)
{
initCommon();
buffer.reserve(size);
buffer.resize(size, MAX_VAL); // MAX_VAL indicate invalid values
}
@@ -405,6 +407,7 @@ void RingBuffer<T>::resize(size_t newSize)
is_Full = false;
buffer.clear();
buffer.reserve(newSize);
buffer.resize(newSize, MAX_VAL);
}