Skip to content
Snippets Groups Projects
Commit c9ca2ad4 authored by schneider's avatar schneider
Browse files

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

parent 861d604a
No related branches found
No related tags found
1 merge request!381BLE fixes 2020 1
......@@ -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();
}
}
/*************************************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment