   }
 
   lcd.clear();
+
+  /*currentModeButton = digitalRead(MODE_PIN);
+  previousModeButton = currentModeButton;
+  Serial.println(currentModeButton);
+  Serial.println(previousModeButton);*/
 }
 
 void loop() {


  previousModeButton = currentModeButton;
  currentModeButton = digitalRead(MODE_PIN);
  if(currentModeButton != previousModeButton) {
    if(currentModeButton == 0) {
      next_mode();
    }
  }
  

bool octoModeIndex = 0;
bool inError = false;

bool currentModeButton = 1;
bool previousModeButton = 1;
unsigned long modeButtonMillis = 0;

MCP_CAN CAN(SPI_CS_PIN); 

void setup() {
  
  currentMode = quad;

  pinMode(LED_PIN, OUTPUT);
  pinMode(MODE_PIN, INPUT_PULLUP);
