   else if(currentMode == quad) {
     currentMode = octo;
   }
-  else if(currentMode == octo) {
+  else if(currentMode = octo) {
     currentMode = dual;
   }
   //diag mode is not implemented yet

const byte SPI_CS_PIN = 10;

const byte MODE_PIN = 9;
//button pin results with internal pullup:
//2 mostly works but is very noisy
//8 is always low


  pinMode(LED_PIN, OUTPUT);
  pinMode(MODE_PIN, INPUT_PULLUP);
  pinMode(GAUGE_PIN, INPUT_PULLUP);
  //digitalWrite(MODE_PIN, INPUT_PULLUP);

  lcd.createChar(0, fill1);
