Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a92bf66c authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Merge "btm_loghistory: Increase max btm log history size 40=>100" am: 7a564feb

parents e218b7e7 7a564feb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@
#define BTM_MAX_SCN_ 31  // PORT_MAX_RFC_PORTS packages/modules/Bluetooth/system/stack/include/rfcdefs.h

constexpr size_t kMaxLogSize = 255;
constexpr size_t kBtmLogHistoryBufferSize = 100;

class TimestampedStringCircularBuffer
    : public bluetooth::common::TimestampedCircularBuffer<std::string> {
 public:
@@ -347,7 +349,8 @@ typedef struct tBTM_CB {
    sco_cb.Init();       /* SCO Database and Structures (If included) */
    devcb.Init();

    history_ = std::make_shared<TimestampedStringCircularBuffer>(40);
    history_ = std::make_shared<TimestampedStringCircularBuffer>(
        kBtmLogHistoryBufferSize);
    CHECK(history_ != nullptr);
    history_->Push(std::string("Initialized btm history"));
  }