 
   if ( !xSemaphoreTake( x_SPI_Mutex, SPI_MutexMaxWaitTime ) )
   {
-    Serial.println( "tft init - No SPI bus available." );
+    Serial.println( "No tft init. - No SPI bus available. Exiting task." );
+    vTaskDelete( NULL );
   }
   else
   {

      const uint16_t BARS_WIDTH       = ILI9341_TFTHEIGHT / 5;
      const float    HEIGHT_FACTOR    = BARS_HEIGHT / 100.0;

      uint32_t average = 0;

      if ( firstRun )
      {
        tft.fillScreen( TFT_BACK_COLOR );
        firstRun = false;
      }

      for ( uint8_t channelNumber = 0; channelNumber < NUMBER_OF_CHANNELS; channelNumber++ )
      {
        average += ledcRead( channelNumber );
      }
      average = average / NUMBER_OF_CHANNELS;

      uint16_t rawBrightness = map( tftBrightness, 0, 100, 0, ( 0x00000001 << TFT_BACKLIGHT_BITDEPTH ) - 1 );
      ledcWrite( TFT_BACKLIGHT_CHANNEL, ( average > rawBrightness ) ? rawBrightness : average );

      for ( uint8_t channelNumber = 0; channelNumber < NUMBER_OF_CHANNELS; channelNumber++ )
      {
        uint8_t r, g, b;
        uint32_t color = strtol( &channel[channelNumber].color[1], NULL, 16 );
        r = ( color & 0xFF0000 ) >> 16; // Filter the 'red' bits from color. Then shift right by 16 bits.
        g = ( color & 0x00FF00 ) >> 8;  // Filter the 'green' bits from color. Then shift right by 8 bits.
        b = ( color & 0x0000FF );       // Filter the 'blue' bits from color. No shift needed.

        // redraw the top part of the bar
        tft.startWrite();
        tft.writeFillRect( channelNumber * BARS_WIDTH + BARS_BORDER,
                           BARS_BOTTOM - BARS_HEIGHT,
                           BARS_WIDTH - BARS_BORDER * 2,

        tft.setTextColor( TFT_DATE_COLOR , TFT_BACK_COLOR );
        tft.print( asctime( &timeinfo ) );
      }

      averageLedBrightness = averageLedBrightness / NUMBER_OF_CHANNELS;

      uint16_t rawBrightness = map( tftBrightness, 0, 100, 0, backlightMaxvalue );

      ledcWrite( TFT_BACKLIGHT_CHANNEL, ( averageLedBrightness > rawBrightness ) ? rawBrightness : averageLedBrightness );

      xSemaphoreGive( x_SPI_Mutex );
    }
    vTaskDelay( tftTaskdelayTime / portTICK_PERIOD_MS );
