     server.arg( "percentage" ).trim();
     float percentage = server.arg( "percentage" ).toFloat();
     programOverride = true;
-    for ( byte thisChannel = 0; thisChannel < NUMBER_OF_CHANNELS; thisChannel++ )
-    {
-      channel[thisChannel].currentPercentage = percentage;
-      ledcWrite( thisChannel, mapFloat( channel[thisChannel].currentPercentage, 0, 100, 0, LEDC_PWM_DEPTH_NOMATH ) );
+    for ( byte channelNumber = 0; channelNumber < NUMBER_OF_CHANNELS; channelNumber++ )
+    {
+      channel[channelNumber].currentPercentage = percentage;
+      ledcWrite( channelNumber, mapFloat( channel[channelNumber].currentPercentage, 0, 100, 0, LEDC_PWM_DEPTH_NOMATH ) );
     }
     lightStatus = "All lights at " + String( percentage ) + "%";
     server.setContentLength( lightStatus.length() );

  server.on( "/api/getminimumlevels", []()
  {
    String html;
    for ( byte thisChannel = 0; thisChannel < NUMBER_OF_CHANNELS; thisChannel++ )
    {
      html += String( channel[thisChannel].minimumLevel ) + "\n";
    }
    server.setContentLength( html.length() );
    server.send( 200, texthtmlHEADER, html );

      }
      if ( ledcActualBitDepth != newPWMDepth )
      {
        for ( byte channelNumber = 0; channelNumber < NUMBER_OF_CHANNELS; channelNumber++ )
        {
          ledcSetup( channelNumber, ledcActualFrequency, newPWMDepth );
        }
      }
      ledcActualBitDepth = newPWMDepth;
