diff --git a/epicardium/ble/app/common/app_db.c b/epicardium/ble/app/common/app_db.c index d79a998ee990a5ab8620551c6667256a4e3149d7..cf054afd206ebd22563dec986f99fdc7254ba359 100644 --- a/epicardium/ble/app/common/app_db.c +++ b/epicardium/ble/app/common/app_db.c @@ -713,8 +713,10 @@ uint32_t AppDbGetPeerSignCounter(appDbHdl_t hdl) /*************************************************************************************************/ void AppDbSetPeerSignCounter(appDbHdl_t hdl, uint32_t signCounter) { - ((appDbRec_t *)hdl)->peerSignCounter = signCounter; - store(); + if(((appDbRec_t *)hdl)->peerSignCounter != signCounter) { + ((appDbRec_t *)hdl)->peerSignCounter = signCounter; + store(); + } } /*************************************************************************************************/