diff --git a/meshtastic/config.proto b/meshtastic/config.proto index c5c2492e8..df9146ea4 100644 --- a/meshtastic/config.proto +++ b/meshtastic/config.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package meshtastic; import "meshtastic/device_ui.proto"; +import "meshtastic/field_metadata.proto"; option csharp_namespace = "Meshtastic.Protobufs"; option go_package = "github.com/meshtastic/go/generated"; @@ -398,12 +399,12 @@ message Config { /* * (Re)define GPS_RX_PIN for your board. */ - uint32 rx_gpio = 8; + uint32 rx_gpio = 8 [(meshtastic.diy_only) = true]; /* * (Re)define GPS_TX_PIN for your board. */ - uint32 tx_gpio = 9; + uint32 tx_gpio = 9 [(meshtastic.diy_only) = true]; /* * The minimum distance in meters traveled (since the last send) before we can send a position to the mesh if position_broadcast_smart_enabled diff --git a/meshtastic/field_metadata.proto b/meshtastic/field_metadata.proto new file mode 100644 index 000000000..ab96ce2fd --- /dev/null +++ b/meshtastic/field_metadata.proto @@ -0,0 +1,17 @@ +syntax = "proto2"; + +package meshtastic; + +import "google/protobuf/descriptor.proto"; + +option csharp_namespace = "Meshtastic.Protobufs"; +option go_package = "github.com/meshtastic/go/generated"; +option java_outer_classname = "FieldMetadataProtos"; +option java_package = "org.meshtastic.proto"; +option swift_prefix = ""; + +extend google.protobuf.FieldOptions { + // Private-use extension number range is 50000-99999. + // Field is only relevant to DIY hardware builds. + optional bool diy_only = 51001 [default = false]; +}