 void dimmerTask ( void * pvParameters )
 {
-  const uint32_t dimmerTaskdelayTime = 1000 / UPDATE_FREQ_LEDS;
+  const uint32_t dimmerTaskdelayTime = 1000U / UPDATE_FREQ_LEDS;
 
   TickType_t xLastWakeTime;
 


  while (1)
  {
    struct timeval microSecondTime;

    gettimeofday( &microSecondTime, NULL );

    ledcAttachPin( channel[channelNumber].pin, channelNumber);
  }

  setupDimmerPWMfrequency( readDoubleNVS( "pwmfrequency", LEDC_MAXIMUM_FREQ ),
                           readInt8NVS( "pwmdepth", LEDC_NUMBER_OF_BIT ) );

  lightStatus = "LIGHTS AUTO";

