Skip to content

Commit

Permalink
fix linter errors in protobuf setup, and restore hardware enum to put…
Browse files Browse the repository at this point in the history
… less used hardware at 32+
  • Loading branch information
caveman99 authored and sachaw committed Sep 9, 2022
1 parent ad4f75a commit e72af95
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion localonly.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ message LocalConfig {
/*
* The part of the config that is specific to the Wifi Settings
*/
Config.WiFiConfig wifi = 4;
Config.NetworkConfig network = 4;

/*
* The part of the config that is specific to the Display
Expand Down
72 changes: 36 additions & 36 deletions mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ message Position {
/*
* TODO: REPLACE
*/
UNSET = 0;
LOC_UNSET = 0;

/*
* TODO: REPLACE
*/
MANUAL = 1;
LOC_MANUAL = 1;

/*
* TODO: REPLACE
*/
GPS_INTERNAL = 2;
LOC_INTERNAL = 2;

/*
* TODO: REPLACE
*/
GPS_EXTERNAL = 3;
LOC_EXTERNAL = 3;
}

/*
Expand All @@ -80,27 +80,27 @@ message Position {
/*
* TODO: REPLACE
*/
UNSET = 0;
ALT_UNSET = 0;

/*
* TODO: REPLACE
*/
MANUAL = 1;
ALT_MANUAL = 1;

/*
* TODO: REPLACE
*/
GPS_INTERNAL = 2;
ALT_INTERNAL = 2;

/*
* TODO: REPLACE
*/
GPS_EXTERNAL = 3;
ALT_EXTERNAL = 3;

/*
* TODO: REPLACE
*/
BAROMETRIC = 4;
ALT_BAROMETRIC = 4;
}

/*
Expand Down Expand Up @@ -278,77 +278,77 @@ enum HardwareModel {
* New T-BEAM with ESP32-S3 CPU
*/
LILYGO_TBEAM_S3_CORE = 12;

/*
* RAK WisBlock ESP32 core: https://docs.rakwireless.com/Product-Categories/WisBlock/RAK11200/Overview/
*/
RAK11200 = 13;

/*
* B&Q Consulting Nano Edition G1: https://uniteng.com/wiki/doku.php?id=meshtastic:nano
*/
NANO_G1 = 14;

/*
* B&Q Consulting Station Edition G1: https://uniteng.com/wiki/doku.php?id=meshtastic:station
*/
STATION_G1 = 25;

/*
* Less common/prototype boards listed here (needs one more byte over the air)
*/
LORA_RELAY_V1 = 12;
LORA_RELAY_V1 = 32;

/*
* TODO: REPLACE
*/
NRF52840DK = 13;
NRF52840DK = 33;

/*
* TODO: REPLACE
*/
PPR = 14;
PPR = 34;

/*
* TODO: REPLACE
*/
GENIEBLOCKS = 15;
GENIEBLOCKS = 35;

/*
* TODO: REPLACE
*/
NRF52_UNKNOWN = 16;
NRF52_UNKNOWN = 36;

/*
* TODO: REPLACE
*/
PORTDUINO = 17;
PORTDUINO = 37;

/*
* The simulator built into the android app
*/
ANDROID_SIM = 18;
ANDROID_SIM = 38;

/*
* Custom DIY device based on @NanoVHF schematics: https://github.com/NanoVHF/Meshtastic-DIY/tree/main/Schematics
*/
DIY_V1 = 19;
DIY_V1 = 39;

/*
* RAK WisBlock ESP32 core: https://docs.rakwireless.com/Product-Categories/WisBlock/RAK11200/Overview/
*/
RAK11200 = 20;

/*
* B&Q Consulting Nano Edition G1: https://uniteng.com/wiki/doku.php?id=meshtastic:nano
*/
NANO_G1 = 21;

/*
* nRF52840 Dongle : https://www.nordicsemi.com/Products/Development-hardware/nrf52840-dongle/
*/
NRF52840_PCA10059 = 22;
NRF52840_PCA10059 = 40;

/*
* Custom Disaster Radio esp32 v3 device https://github.com/sudomesh/disaster-radio/tree/master/hardware/board_esp32_v3
*/
DR_DEV = 23;
DR_DEV = 41;

/*
* M5 esp32 based MCU modules with enclosure, TFT and LORA Shields. All Variants (Basic, Core, Fire, Core2, Paper) https://m5stack.com/
*/
M5STACK = 24;
M5STACK = 42;

/*
* B&Q Consulting Station Edition G1: https://uniteng.com/wiki/doku.php?id=meshtastic:station
*/
STATION_G1 = 25;

/*
* Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
*/
Expand Down Expand Up @@ -835,7 +835,7 @@ enum Constants {
* First enum must be zero, and we are just using this enum to
* pass int constants between two very different environments
*/
UNSET = 0;
ZERO = 0;

/*
* From mesh.options
Expand Down
2 changes: 1 addition & 1 deletion module_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ message ModuleConfig {
* TODO: REPLACE
*/
enum Serial_Baud {
DEFAULT = 0;
BAUD_DEFAULT = 0;
BAUD_110 = 1;
BAUD_300 = 2;
BAUD_600 = 3;
Expand Down
2 changes: 1 addition & 1 deletion telemetry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ enum TelemetrySensorType {
/*
* No external telemetry sensor explicitly set
*/
UNSET = 0;
SENSOR_UNSET = 0;

/*
* High accuracy temperature, pressure, humidity
Expand Down

0 comments on commit e72af95

Please sign in to comment.