Remove additional buffer size check
This commit is contained in:
parent
73bbc2b1ca
commit
4dbc3ab836
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue