Create a #define for the random number gen to save space.
Add check to ensure if the same code is repeated then the rolling code does not advance. This is to ensure that a random code is not sent multiple times in the hope of eventually being correct. New codes will still advance the rolling code, thus creating a new different code vs a new different code situation.
Create a #define for the random number gen to save space.
Add check to ensure if the same code is repeated then the rolling code does not advance. This is to ensure that a random code is not sent multiple times in the hope of eventually being correct. New codes will still advance the rolling code, thus creating a new different code vs a new different code situation.