small fix

This commit is contained in:
2026-08-28 21:22:27 +03:00
parent 4115d79e88
commit efede9e6bc
4 changed files with 11 additions and 14 deletions
+4 -4
View File
@@ -60,11 +60,11 @@ static const uchar binlog_sig[] = {'B', 'I', 'N', 'L', 'O', 'G'};
REGISTER_DEVICE(PIBinaryLog)
PIBinaryLog::PIBinaryLog() {
# ifndef PIP_HAS_THREADS
setThreadedReadBufferSize(512);
# else
# ifdef PIP_EMBEDDED
setThreadedReadBufferSize(1_KiB);
# else // PIP_EMBEDDED
setThreadedReadBufferSize(64_KiB);
# endif // PIP_HAS_THREADS
# endif // PIP_EMBEDDED
is_started = is_indexed = is_pause = false;
create_index_on_fly = false;
current_index = -1;
+2 -2
View File
@@ -206,9 +206,9 @@ void PIEthernet::construct() {
# endif
# ifdef PIP_EMBEDDED
setThreadedReadBufferSize(1_KiB);
# else
# else // PIP_EMBEDDED
setThreadedReadBufferSize(64_KiB);
# endif
# endif // PIP_EMBEDDED
// setPriority(piHigh);
}
+2 -5
View File
@@ -20,6 +20,7 @@
#include "pispi.h"
#include "piincludes_p.h"
#include "piliterals_bytes.h"
#include "pipropertystorage.h"
#ifdef LINUX
# define PIP_SPI
@@ -43,11 +44,7 @@ REGISTER_DEVICE(PISPI)
PISPI::PISPI(const PIString & path, uint speed, PIIODevice::DeviceMode mode): PIIODevice(path, mode) {
#ifndef PIP_HAS_THREADS
setThreadedReadBufferSize(512);
#else
setThreadedReadBufferSize(1024);
#endif // PIP_HAS_THREADS
setThreadedReadBufferSize(1_KiB);
setPath(path);
setSpeed(speed);
setBits(8);
+3 -3
View File
@@ -98,11 +98,11 @@ void PIPacketExtractor::construct() {
func_payload = nullptr;
setPayloadSize(0);
setTimeout(100_ms);
#ifdef PIP_EMBEDDED
# ifdef PIP_EMBEDDED
setThreadedReadBufferSize(1_KiB);
#else
# else // PIP_EMBEDDED
setThreadedReadBufferSize(64_KiB);
#endif
# endif // PIP_EMBEDDED
setDevice(nullptr);
setSplitMode(None);
missed = footerInd = 0;