   }
 
   /* check if light status has changed */
-  if ( lastLightStatus != lightStatus )
+  if ( displayedLightStatus != lightStatus )
   {
     drawMenuButtons();
-    lastLightStatus = lightStatus;
+    displayedLightStatus = lightStatus;
   }
 
   if ( touch.tirqTouched() )


static inline __attribute__((always_inline)) void showMenu()
{
  static lightStatus_t lastLightStatus;

  if ( tftClearScreen )
  {

  const uint16_t BARS_WIDTH       = 210 / 5; /* note: total width is 210 px */
  const float    HEIGHT_FACTOR    = BARS_HEIGHT / 100.0;

  static wl_status_t   displayedWiFiStatus;
  static lightStatus_t displayedLightStatus;

  uint16_t channelColor565[NUMBER_OF_CHANNELS];

