     pos--;
     if (pos == -1)
     {
-      pos = timeStorage-1;
+      pos = storageSize-1;
     }
     sum += (int)storage[pos];
   }

#ifdef USE_STROMBEWUSST_SERVER 
void strombewusstPush()
{
  // Set the last byte the the last frame's value
  udpBuffer[33] = storageSum(1);
  udp.beginPacket(STROMBEWUSST_SERVER, STROMBEWUSST_PORT);
  udp.write(udpBuffer);
  udp.endPacket();
}
#endif 

#ifdef USE_NETWORK
String generateJSON()


  #ifdef USE_STROMBEWUSST_SERVER
    // UDP Format: <32xkey><1xtimeframe><1xticks>
    udpBuffer[16] = (byte)TIMEFRAME;
    udp.begin(STROMBEWUSST_PORT);
  #endif 
  
  neopixelSet(0, 64, 0);
}

void loop()
