reset mask at reset detection
@@ -711,6 +711,11 @@ error_return_t MsgAlloc_IsReseted(void)
PortMng_Init();
// We need to reset MsgAlloc
MsgAlloc_Init(NULL);
+ ctx.Decay = 0;
+ for (uint16_t i = 0; i < MASK_SIZE; i++)
+ {
+ ctx.Mask[i] = 0;
+ }
return SUCCEED;
}
return FAILED;
