menu "LoRComm Config"
  menuconfig LORCOMM_GPS_ENABLED
    bool "Enable GPS receiver"
    help
      Enables attached GPS receiver

    if LORCOMM_GPS_ENABLED
      config LORCOMM_GPS_RX
        int "GPS RX Pin"
        default 13
        help
          GPIO to receive data from GPS receiver
    endif

  choice LORCOMM_BUTTON_ACTION
    bool "User Button Action"
    default LORCOMM_BUTTON_ACTION_HELO
        help
          Selection action to be performed when the user button
          is pressed.

        config LORCOMM_BUTTON_ACTION_NONE
            bool "Do nothing"
            help
              Do nothing

        config LORCOMM_BUTTON_ACTION_HELO
            bool "Send HELO"
            help
              Send out a HELO packet and listen for response

        if LORCOMM_GPS_ENABLED
          config LORCOMM_BUTTON_ACTION_GPS
              bool "Send GPS"
              help
                  Sends GPS coordinates and listens for ACK.
        endif
    endchoice

    config LORCOMM_BUTTON_ACTION_ENABLED
      bool
        default n if LORCOMM_BUTTON_ACTION_NONE
        default y
endmenu