Remove additional buffer size check

This commit is contained in:
GHOSCHT 2022-02-05 22:29:32 +01:00
parent 73bbc2b1ca
commit 4dbc3ab836
No known key found for this signature in database
GPG key ID: A35BD466B8871994

View file

@ -28,7 +28,7 @@ void LightController::initializePins()
void LightController::initializeStateDefaultValues()
{
for (__SIZE_TYPE__ i = 0; i < bjtCount && i < sizeof(bjtState) / sizeof(bjtState[0]); i++)
for (__SIZE_TYPE__ i = 0; i < bjtCount; i++)
{
bjtState[i] = 0;
}
@ -36,7 +36,7 @@ void LightController::initializeStateDefaultValues()
void LightController::restoreState()
{
for (__SIZE_TYPE__ i = 0; i < bjtCount && i < sizeof(bjtState) / sizeof(bjtState[0]); i++)
for (__SIZE_TYPE__ i = 0; i < bjtCount; i++)
{
bjtState[i] = EEPROM.read(i);
commitPinState(i);