mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 18:09:04 +00:00
Merge branch 'master' into caveman99-patch-1
This commit is contained in:
commit
fbc25c3a13
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@ -3,9 +3,14 @@ on:
|
|||||||
# Triggers the workflow on push or pull request events but only for the master branch
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
- '**.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
- '**.yml'
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
ci-check:
|
ci-check:
|
||||||
|
17
.github/workflows/update_protobufs.yml
vendored
17
.github/workflows/update_protobufs.yml
vendored
@ -11,9 +11,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Update Submodule
|
- name: Update submodule
|
||||||
run: |
|
run: |
|
||||||
git pull --recurse-submodules
|
|
||||||
git submodule update --remote proto
|
git submodule update --remote proto
|
||||||
|
|
||||||
- name: Download nanopb
|
- name: Download nanopb
|
||||||
@ -26,11 +25,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./bin/regen-protos.sh
|
./bin/regen-protos.sh
|
||||||
|
|
||||||
- name: Commit update
|
- name: Create pull request
|
||||||
run: |
|
uses: peter-evans/create-pull-request@v3
|
||||||
git config --global user.name 'github-actions'
|
with:
|
||||||
git config --global user.email 'bot@noreply.github.com'
|
add-paths: |
|
||||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
proto
|
||||||
git add proto
|
src/mesh
|
||||||
git add mesh
|
|
||||||
git commit -m "Update protobuf submodule" && git push || echo "No changes to commit"
|
|
||||||
|
2
proto
2
proto
@ -1 +1 @@
|
|||||||
Subproject commit 785fb20a0da03705220fbb8292442c175b902164
|
Subproject commit a9bba331e69b16ba7cd9b35d19b11732eff8d1b5
|
@ -14,6 +14,9 @@ typedef struct _EnvironmentalMeasurement {
|
|||||||
float temperature;
|
float temperature;
|
||||||
float relative_humidity;
|
float relative_humidity;
|
||||||
float barometric_pressure;
|
float barometric_pressure;
|
||||||
|
float gas_resistance;
|
||||||
|
float voltage;
|
||||||
|
float current;
|
||||||
} EnvironmentalMeasurement;
|
} EnvironmentalMeasurement;
|
||||||
|
|
||||||
|
|
||||||
@ -22,19 +25,25 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initializer values for message structs */
|
/* Initializer values for message structs */
|
||||||
#define EnvironmentalMeasurement_init_default {0, 0, 0}
|
#define EnvironmentalMeasurement_init_default {0, 0, 0, 0, 0, 0}
|
||||||
#define EnvironmentalMeasurement_init_zero {0, 0, 0}
|
#define EnvironmentalMeasurement_init_zero {0, 0, 0, 0, 0, 0}
|
||||||
|
|
||||||
/* Field tags (for use in manual encoding/decoding) */
|
/* Field tags (for use in manual encoding/decoding) */
|
||||||
#define EnvironmentalMeasurement_temperature_tag 1
|
#define EnvironmentalMeasurement_temperature_tag 1
|
||||||
#define EnvironmentalMeasurement_relative_humidity_tag 2
|
#define EnvironmentalMeasurement_relative_humidity_tag 2
|
||||||
#define EnvironmentalMeasurement_barometric_pressure_tag 3
|
#define EnvironmentalMeasurement_barometric_pressure_tag 3
|
||||||
|
#define EnvironmentalMeasurement_gas_resistance_tag 4
|
||||||
|
#define EnvironmentalMeasurement_voltage_tag 5
|
||||||
|
#define EnvironmentalMeasurement_current_tag 6
|
||||||
|
|
||||||
/* Struct field encoding specification for nanopb */
|
/* Struct field encoding specification for nanopb */
|
||||||
#define EnvironmentalMeasurement_FIELDLIST(X, a) \
|
#define EnvironmentalMeasurement_FIELDLIST(X, a) \
|
||||||
X(a, STATIC, SINGULAR, FLOAT, temperature, 1) \
|
X(a, STATIC, SINGULAR, FLOAT, temperature, 1) \
|
||||||
X(a, STATIC, SINGULAR, FLOAT, relative_humidity, 2) \
|
X(a, STATIC, SINGULAR, FLOAT, relative_humidity, 2) \
|
||||||
X(a, STATIC, SINGULAR, FLOAT, barometric_pressure, 3)
|
X(a, STATIC, SINGULAR, FLOAT, barometric_pressure, 3) \
|
||||||
|
X(a, STATIC, SINGULAR, FLOAT, gas_resistance, 4) \
|
||||||
|
X(a, STATIC, SINGULAR, FLOAT, voltage, 5) \
|
||||||
|
X(a, STATIC, SINGULAR, FLOAT, current, 6)
|
||||||
#define EnvironmentalMeasurement_CALLBACK NULL
|
#define EnvironmentalMeasurement_CALLBACK NULL
|
||||||
#define EnvironmentalMeasurement_DEFAULT NULL
|
#define EnvironmentalMeasurement_DEFAULT NULL
|
||||||
|
|
||||||
@ -44,7 +53,7 @@ extern const pb_msgdesc_t EnvironmentalMeasurement_msg;
|
|||||||
#define EnvironmentalMeasurement_fields &EnvironmentalMeasurement_msg
|
#define EnvironmentalMeasurement_fields &EnvironmentalMeasurement_msg
|
||||||
|
|
||||||
/* Maximum encoded size of messages (where known) */
|
/* Maximum encoded size of messages (where known) */
|
||||||
#define EnvironmentalMeasurement_size 15
|
#define EnvironmentalMeasurement_size 30
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
@ -25,9 +25,9 @@
|
|||||||
#undef RF95_SCK
|
#undef RF95_SCK
|
||||||
#define RF95_SCK 18
|
#define RF95_SCK 18
|
||||||
#undef RF95_MISO
|
#undef RF95_MISO
|
||||||
#define RF95_MISO 23
|
#define RF95_MISO 19
|
||||||
#undef RF95_MOSI
|
#undef RF95_MOSI
|
||||||
#define RF95_MOSI 19
|
#define RF95_MOSI 23
|
||||||
#undef RF95_NSS
|
#undef RF95_NSS
|
||||||
#define RF95_NSS 5
|
#define RF95_NSS 5
|
||||||
|
|
||||||
@ -54,4 +54,4 @@
|
|||||||
// Internally the TTGO module hooks the SX126x-DIO2 in to control the TX/RX switch
|
// Internally the TTGO module hooks the SX126x-DIO2 in to control the TX/RX switch
|
||||||
// (which is the default for the sx1262interface code)
|
// (which is the default for the sx1262interface code)
|
||||||
#define SX126X_E22
|
#define SX126X_E22
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user