From 507f146477a2e8b7033e60b4cff97b81a2aeb3b4 Mon Sep 17 00:00:00 2001 From: h2zero Date: Mon, 9 May 2022 19:35:30 -0600 Subject: [PATCH] Properly initialize model timer structs. --- src/NimBLEMeshModel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NimBLEMeshModel.cpp b/src/NimBLEMeshModel.cpp index fc2eabe..6d7c390 100644 --- a/src/NimBLEMeshModel.cpp +++ b/src/NimBLEMeshModel.cpp @@ -59,6 +59,8 @@ NimBLEMeshModel::NimBLEMeshModel(NimBLEMeshModelCallbacks *pCallbacks, m_transStep = 0; memset(&m_opPub, 0, sizeof(m_opPub)); + memset(&m_tdTimer, 0, sizeof(m_tdTimer)); + memset(&m_pubTimer, 0, sizeof(m_pubTimer)); }