From 89d14919c938773a68e2988e2d61db9922ad2fa2 Mon Sep 17 00:00:00 2001 From: DashyFox Date: Wed, 12 Mar 2025 16:15:35 +0300 Subject: [PATCH] fix isRecive --- IR_DecoderRaw.h | 2 +- IR_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IR_DecoderRaw.h b/IR_DecoderRaw.h index 21c7790..8110251 100644 --- a/IR_DecoderRaw.h +++ b/IR_DecoderRaw.h @@ -48,7 +48,7 @@ public: inline bool isOverflow() { return isBufferOverflow; }; // Буффер переполнился bool isSubOverflow(); - inline bool isReciving() { return isRecive; }; // Возвращает true, если происходит приём пакета + volatile inline bool isReciving() { return isRecive; }; // Возвращает true, если происходит приём пакета ////////////////////////////////////////////////////////////////////////// private: diff --git a/IR_config.h b/IR_config.h index a5f6c3e..80893e4 100644 --- a/IR_config.h +++ b/IR_config.h @@ -122,7 +122,7 @@ typedef uint16_t crc_t; #endif #ifndef subBufferSize -#define subBufferSize 50 // Буфер для складирования фронтов, пока их не обработают (передатчик) +#define subBufferSize 250 // Буфер для складирования фронтов, пока их не обработают (передатчик) #endif #define preambPulse 3