Add & swap more fields to enabled by default

This commit is contained in:
Sacha Weatherstone 2022-09-11 10:54:57 +10:00
parent 3d4c827831
commit 5e255c01ed
2 changed files with 19 additions and 14 deletions

View file

@ -47,9 +47,9 @@ message Config {
Role role = 1;
/*
* If set, this will disable the SerialConsole by not initilizing the StreamAPI
* Disabling this will disable the SerialConsole by not initilizing the StreamAPI
*/
bool serial_disabled = 2;
bool serial_enabled = 2;
/*
* By default we turn off logging as soon as an API client connects (to keep shared serial link quiet).
@ -138,9 +138,9 @@ message Config {
uint32 position_broadcast_secs = 1;
/*
* Disable adaptive position braoadcast, which is now the default.
* Adaptive position braoadcast, which is now the default.
*/
bool position_broadcast_smart_disabled = 2;
bool position_broadcast_smart_enabled = 2;
/*
* If set, this node is at a fixed position.
@ -150,9 +150,9 @@ message Config {
bool fixed_position = 3;
/*
* Should the GPS be disabled for this node?
* Is GPS enabled for this node?
*/
bool gps_disabled = 4;
bool gps_enabled = 4;
/*
* How often should we try to get GPS position (in seconds)
@ -481,12 +481,10 @@ message Config {
}
/*
* If zero then, use default max legal continuous power (ie. something that won't
* burn out the radio hardware)
* In most cases you should use zero here.
* Units are in dBm.
*/
int32 tx_power = 1;
* When enabled, the `modem_preset` fields will be adheared to, else the `bandwidth`/`spread_factor`/`coding_rate`
* will be taked from their respective manually defined fields
*/
bool use_preset = 1;
/*
* Either modem_config or bandwidth/spreading/coding will be specified - NOT BOTH.
@ -538,7 +536,15 @@ message Config {
* Disable TX from the LoRa radio. Useful for hot-swapping antennas and other tests.
* Defaults to false
*/
bool tx_disabled = 9;
bool tx_enabled = 9;
/*
* If zero then, use default max legal continuous power (ie. something that won't
* burn out the radio hardware)
* In most cases you should use zero here.
* Units are in dBm.
*/
int32 tx_power = 10;
/*
* For testing it is useful sometimes to force a node to never listen to

View file

@ -18,7 +18,6 @@ message ModuleConfig {
/*
* If a meshtastic node is able to reach the internet it will normally attempt to gateway any channels that are marked as
* is_uplink_enabled or is_downlink_enabled.
* But if this flag is set, all MQTT features will be disabled and no servers will be contacted.
*/
bool enabled = 1;