constexpr IR_ResponseDelay

This commit is contained in:
2025-01-28 12:59:42 +03:00
parent d1cb167aaf
commit 1353ab6f75
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#define riseTimeMin (riseTime - riseTolerance)
#define aroundRise(t) (riseTimeMin < t && t < riseTimeMax)
#define IR_timeout (riseTimeMax * (8 + syncBits + 1)) // us // таймаут в 8 data + 3 sync + 1
constexpr uint16_t IR_ResponseDelay = ((uint16_t)(((bitTime+riseTolerance) * (8 + syncBits + 1))*2.7735))/1000;
class IR_Encoder;
class IR_DecoderRaw : virtual public IR_FOX