Every code in HAL driver has the below structure that doesn´t care about overflow on HAL_GetTick()....
tickstart = HAL_GetTick();
while (Something())
{
if (Timeout != HAL_MAX_DELAY)
{
if (((HAL_GetTick() ...
I wasn´t aware of this automatic modulo 2 in this kind of operation.Great to know and thank you to let me learn this today.Take care. COVID-19 is out there.