 }
 
 uint8_t N = 0;
-#ifdef PRINT_FPS
-int fpsCounter = 0;
-int secondTimer = 0;
-#endif
+if(PRINT_FPS == 1)
+{
+    int fpsCounter = 0;
+    int secondTimer = 0;
+}
 void loop() {
     // Read data over socket
     int packetSize = port.parsePacket();

            pixels[N].B = (uint8_t)packetBuffer[i+3];
        } 
      ledstrip.show(pixels);
      Serial.print("*");
      #ifdef PRINT_FPS
        fpsCounter++;
      #endif
  }
  #ifdef PRINT_FPS
  if(millis() - secondTimer >= 1000)
  {
    secondTimer = millis();

    Serial.printf("FPS: %d\n", fpsCounter);
    fpsCounter = 0;
  }
 }
}
