Commit c9ca2ad4 authored by schneider's avatar schneider

fix(ble): Don't write PeerSignCounter if it didn't change

parent 861d604a
......@@ -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();
}
}
/*************************************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment