lib/builder.js
function setEnabledFeatures(selectedFeature) {
  switch (selectedFeature) {
  case "AnalogInputFirmata":
    analogInputEnabled = true;
    break;
  case "AnalogOutputFirmata":
    analogOutputEnabled = true;
    break;
  case "DigitalInputFirmata":
    digitalInputEnabled = true;
    break;
  case "DigitalOutputFirmata":
    digitalOutputEnabled = true;
    break;
  case "ServoFirmata":
    servoEnabled = true;
    break;
  case "FirmataScheduler":
    schedulerEnabled = true;
    break;
  }
}
function setEnabledFeatures(selectedFeature) {
  switch (selectedFeature) {
  case "AnalogInputFirmata":
    analogInputEnabled = true;
    break;
  case "AnalogOutputFirmata":
    analogOutputEnabled = true;
    break;
  case "DigitalInputFirmata":
    digitalInputEnabled = true;
    break;
  case "DigitalOutputFirmata":
    digitalOutputEnabled = true;
    break;
  case "ServoFirmata":
    servoEnabled = true;
    break;
  case "FirmataScheduler":
    schedulerEnabled = true;
    break;
  }
}
function setEnabledFeatures ( selectedFeature ) { switch ( selectedFeature ) { case "AnalogInputFirmata" : analogInputEnabled = true ; break ; case "AnalogOutputFirmata" : analogOutputEnabled = true ; break ; case "DigitalInputFirmata" : digitalInputEnabled = true ; break ; case "DigitalOutputFirmata" : digitalOutputEnabled = true ; break ; case "ServoFirmata" : servoEnabled = true ; break ; case "FirmataScheduler" : schedulerEnabled = true ; break ; } }
Additional features should not be added to this function.
Ideally these comparisons will be eliminated at some point.
@private
Additional features should not be added to this function . Ideally these comparisons will be eliminated at some point .