From 5486fa9d5bf3b3a91ce57d0b7cafee3823419b17 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 20 Jul 2020 17:52:52 +0200 Subject: [PATCH] reduce tx queue from 40 to 30 --- src/telegram.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/telegram.h b/src/telegram.h index 51a70e83d..b62c5df09 100644 --- a/src/telegram.h +++ b/src/telegram.h @@ -247,8 +247,7 @@ class RxService : public EMSbus { } private: - static constexpr uint32_t RX_LOOP_WAIT = 800; // delay in processing Rx queue - uint32_t last_rx_check_ = 0; + uint32_t last_rx_check_ = 0; uint8_t rx_telegram_id_ = 0; // queue counter @@ -260,7 +259,7 @@ class RxService : public EMSbus { class TxService : public EMSbus { public: - static constexpr size_t MAX_TX_TELEGRAMS = 40; // size of Tx queue + static constexpr size_t MAX_TX_TELEGRAMS = 30; // size of Tx queue static constexpr uint8_t TX_WRITE_FAIL = 4; static constexpr uint8_t TX_WRITE_SUCCESS = 1;