Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions meshtastic/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions meshtastic/field_metadata.proto
Original file line number Diff line number Diff line change
@@ -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];
}
Loading