# File lib/commands/touch_sensor.rb, line 64
  def set_mode
    @action == :bumped ? mode = NXTComm::PERIODCOUNTERMODE : mode = NXTComm::BOOLEANMODE
    @nxt.set_input_mode(
      NXTComm.const_get("SENSOR_#{@port}"),
      NXTComm::SWITCH,
      mode
    )
  end