       case 0x00:
         // 0 - controller feed
         if (val == 0) {
-          controllerData = getControllerData();
+          getControllerData();
         }
         Serial.write(((uint8_t*)&controllerData)[val]);
         break;

  Serial.write(0xA5);
}

dataForController_t getControllerData(void) {
  // prepare data
  dataForController_t controllerData;

  // digital pin 21-14
  controllerData.button01 = !digitalRead(21);
  controllerData.button03 = !digitalRead(20);

*/
#include "DaytonaArduino.h"

dataForController_t controllerData;
byte size = sizeof(dataForController_t) - 1;

void setup() {
  setupPins();
  setupSerial();
  getControllerData();
}

void loop() {
