fix longPacket sync_bit

This commit is contained in:
2026-04-13 14:42:50 +03:00
parent f8daa68381
commit 57f79b35c7
3 changed files with 153 additions and 3 deletions

View File

@ -187,8 +187,8 @@ bool isReciveRaw;
////////////////////////////////////////////////////////////////////////
bool isData = true; // Флаг относится ли бит к данным, или битам синхронизации
uint16_t i_dataBuffer; // Счётчик буфера данных
uint8_t nextControlBit = bitPerByte; // Метка для смены флага isData
uint16_t i_dataBuffer; // Счётчик буфера данных
uint16_t nextControlBit = bitPerByte; // Метка для смены флага isData; uint16_t нужен для длинных кадров (>24 байт total)
uint8_t i_syncBit; // Счётчик битов синхронизации
uint8_t err_syncBit; // Счётчик ошибок синхронизации