   }
   pinMode(pin, OUTPUT);
   digitalWrite(pin, LOW);
-  SPI.setBitOrder(bitorder);
+  SPI.setBitOrder((BitOrder)bitorder);
   SPI.setClockDivider(divider);
   SPI.setDataMode(mode);
   object *forms = cdr(args);

  return imagesize;
}

int loadimage () {
  unsigned int imagesize = eeprom_read_word(&image.datasize);
  if (imagesize == 0 || imagesize == 0xFFFF) error(PSTR("No saved image"));
  GlobalEnv = (object *)eeprom_read_word(&image.globalenv);

  while (args != NULL) {
    int temp = integer(car(args));
    #if defined(checkoverflow)
    if (temp < 1) { if (INT_MIN - temp > result) error(PSTR("'+' arithmetic overflow")); }
    else { if (INT_MAX - temp < result) error(PSTR("'+' arithmetic overflow")); }
    #endif
    result = result + temp;
    args = cdr(args);
