   {
     powerEnabled = !powerEnabled;
     
-    if (powerEnabled)
-    {
-      nextClockTick = millis() + 1000;
-    }
-    else
+    if (!powerEnabled)
     {
       WriteClock();
     }


void UpdateClock()
{   
  if (powerEnabled && millis() > nextClockTick)
  {
    nextClockTick += 1000;
    secondsOfOperation++;
    
    if (secondsOfOperation % 60 == 0)
    {
      WriteClock();
    }
  }
}

    targetSpeed = 0;
  }

  delayBetweenMotorUpdates = ReadPotentiometer(rateOfSpeedChangeInPin);
  delayBetweenMotorUpdates = map(delayBetweenMotorUpdates, 0, potentiometerCeiling, minimumDelay, maximumDelay);
  int absoluteCurrentSpeed = abs(currentSpeed);
  if (absoluteCurrentSpeed > abs(targetSpeed) && absoluteCurrentSpeed < startOfStopDamping)
  {
