Commit Graph

8933 Commits

Author SHA1 Message Date
Todd Herbert
19c777dde6 Add I2C bus to Heltec T114 header pins
SDA: P0.13
SCL: P0.16

Uses bus 1, leaving bus 0 routed to the unpopulated footprint for the RTC (general future-proofing)
2024-09-23 22:40:07 +02:00
Todd Herbert
db2f2dd44d Implement optional second I2C bus for NRF52840
Enabled at compile-time if WIRE_INFERFACES_COUNT defined as 2
2024-09-23 22:40:07 +02:00
Jason Murray
7b84a21b55 Revert "Update classes on protobufs update" (#4824)
* Revert "Update classes on protobufs update"

* remove quotes to fix trunk.

---------

Co-authored-by: Tom Fifield <tom@tomfifield.net>
2024-09-23 22:40:07 +02:00
Tom Fifield
2cd41d9f15 Minor fix (#4666)
* Minor fixes

It turns out setting a map value with the index notation causes
an lookup that can be avoided with emplace. Apply this to one line in
the StoreForward module.

Fix also Cppcheck-determined highly minor performance increase by
passing gpiochipname as a const reference :)

The amount of cycles used on this laptop while learning about these
callouts from cppcheck is unlikely to ever be more than the cycles
saved by the fixes ;)

* Update PortduinoGlue.cpp
2024-09-23 22:40:07 +02:00
Jonathan Bennett
fe41abad73 Consider the LoRa header when checking packet length 2024-09-23 22:40:07 +02:00
Tom Fifield
cbaee64ce1 Make Ublox code more readable (#4727)
* Simplify Ublox code

Ublox comes in a myriad of versions and settings. Presently our
configuration code does a lot of branching based on versions being
or not being present.

This patch adds version detection earlier in the piece and branches
on the set gnssModel instead to create separate setup methods for Ublox 6,
Ublox 7/8/9, and Ublox10.

Additionally, adds a macro to make the code much shorter and more
readable.

* Make trunk happy

* Make trunk happy

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-23 22:40:07 +02:00
Tom Fifield
c356bec3ae Revert "Consolidate variant build steps (#4806)" (#4816)
This reverts commit 9f8d86cb25.
2024-09-23 22:40:07 +02:00
Jason Murray
1c3d477202 Consolidate variant build steps (#4806)
* poc: consolidate variant build steps

* use build-variant action

* only checkout once and clean up after run
2024-09-23 22:40:07 +02:00
Austin
de7a3f9cf8 [Board] DIY "t-energy-s3_e22" (#4782)
* New variant "t-energy-s3_e22"

- Lilygo T-Energy-S3
- NanoVHF "Mesh-v1.06-TTGO-T18" board
- Ebyte E22 Series

* add board_level = extra

* Update variant.h

---------

Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
Co-authored-by: Tom Fifield <tom@tomfifield.net>
2024-09-23 22:40:07 +02:00
Ben Meadors
0e9c229100 CI fixes 2024-09-23 22:40:07 +02:00
Ben Meadors
8cee3a4971 Hopefully extract and commit to meshtastic.github.io 2024-09-23 22:40:07 +02:00
Jonathan Bennett
873def52ac Update platform-native to pick up portduino crash fix (#4807) 2024-09-23 22:40:07 +02:00
Jason Murray
4ee17bb922 meshtastic/ is a test suite; protobufs/ contains protobufs; 2024-09-23 22:40:07 +02:00
Jason Murray
1bff6bfb8b feat: trigger class update when protobufs are changed 2024-09-23 22:40:07 +02:00
Thomas Göttgens
9e99fdab9f heltec-wireless-bridge
requires Proto PR first
2024-09-23 22:40:07 +02:00
thebentern
2a06106ac0 [create-pull-request] automated change 2024-09-23 22:40:07 +02:00
todd-herbert
c6e71f2e72 Re-order doDeepSleep (#4802)
Make sure PMU sleep takes place before I2C ends
2024-09-23 22:40:07 +02:00
Thomas Göttgens
6377f0e1b4 Raspberry Pico2 - needs protos 2024-09-23 22:40:07 +02:00
dependabot[bot]
b06238f9d9 Bump pnpm/action-setup from 2 to 4 in /.github/workflows (#4798)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2 to 4.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2...v4)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 22:40:07 +02:00
github-actions[bot]
9f64adf604 [create-pull-request] automated change (#4789)
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-09-23 22:40:07 +02:00
dependabot[bot]
d3cb80872f Bump meshtestic from 31ee3d9 to 37245b3 (#4799)
Bumps [meshtestic](https://github.com/meshtastic/meshTestic) from `31ee3d9` to `37245b3`.
- [Commits](31ee3d90c8...37245b3d61)

---
updated-dependencies:
- dependency-name: meshtestic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 22:40:07 +02:00
Tom Fifield
0617f33eec Actions: Semgrep Images have moved from returntocorp to semgrep (#4774)
https://hub.docker.com/r/returntocorp/semgrep notes: "We've moved!
 Official Docker images for Semgrep now available at semgrep/semgrep."

Patch updates our CI workflow for these images.

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-23 22:40:07 +02:00
dependabot[bot]
e15d40aa99 Bump docker/build-push-action from 5 to 6 in /.github/workflows (#4800) 2024-09-23 22:40:07 +02:00
dependabot[bot]
0d9fdecdd1 Bump peter-evans/create-pull-request from 6 to 7 in /.github/workflows (#4797) 2024-09-23 22:40:07 +02:00
Tom Fifield
d13755bdb2 fix dependabot syntax (#4795)
* fix dependabot syntax

* Update dependabot.yml

* Update dependabot.yml
2024-09-23 22:40:07 +02:00
Jason Murray
b6d63eb0b5 chore: trunk fmt 2024-09-23 22:40:07 +02:00
Jason Murray
a2a68ce517 Enable Dependabot 2024-09-23 22:40:07 +02:00
Jason Murray
81ec117dbb set title for version bump PR (#4791) 2024-09-23 22:40:07 +02:00
Jason Murray
75eda8f14f set title for protobufs bump PR (#4792) 2024-09-23 22:40:07 +02:00
Ben Meadors
a84ec50e9b Download debian files after firmware zip 2024-09-23 22:40:07 +02:00
todd-herbert
29442c599d Honor flip & color for Heltec T114 and T190 (#4786)
* Honor TFT_MESH color if defined for Heltec T114 or T190

* Temporary: point lib_deps at fork of Heltec's ST7789 library
For demo only, until ST7789 is merged

* Update lib_deps; tidy preprocessor logic
2024-09-23 22:40:07 +02:00
Ben Meadors
f625e8c837 Additional decoded packet ignores 2024-09-23 22:40:07 +02:00
Ben Meadors
94e882c827 Drop received packets from self 2024-09-23 22:40:07 +02:00
mverch67
307c44feac lib update: try-fix audio 2024-09-23 22:00:35 +02:00
mverch67
45b173abb3 prepare LVGL ST7789 driver 2024-09-23 22:00:10 +02:00
Jonathan Bennett
9a7a4d3814
Check for null before printing debug (#4835) 2024-09-23 13:56:26 -05:00
Jonathan Bennett
fa1cc59841
Rename message length headers and set payload max to 255 (#4827)
* Rename message length headers and set payload max to 255

* Add MESHTASTIC_PKC_OVERHEAD

* compare to MESHTASTIC_HEADER_LENGTH

---------

Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
2024-09-23 09:20:32 -05:00
Augusto Zanellato
d4dc4dec76
Merge branch 'master' into detsensor_broadcast_changes 2024-09-23 16:20:20 +02:00
Augusto Zanellato
be01c18c74
DetectionSensor: more flexible triggering 2024-09-23 16:15:44 +02:00
Ben Meadors
e8829b8f52
Refactor and consolidate time window logic (#4826)
* Refactor and consolidate windowing logic

* Trunk

* Fixes

* More

* Fix braces and remove unused now variables.

There was a brace in src/mesh/RadioLibInterface.cpp that was breaking
compile on some architectures.

Additionally, there were some brace errors in
src/modules/Telemetry/AirQualityTelemetry.cpp
src/modules/Telemetry/EnvironmentTelemetry.cpp
src/mesh/wifi/WiFiAPClient.cpp

Move throttle include in WifiAPClient.cpp to top.

Add Default.h to sleep.cpp

rest of files just remove unused now variables.

* Remove a couple more meows

---------

Co-authored-by: Tom Fifield <tom@tomfifield.net>
2024-09-23 08:58:14 -05:00
Thomas Göttgens
1afd61698b
Merge pull request #4745 from todd-herbert/t114-i2c
I2C for Heltec Mesh Node T114
2024-09-23 15:45:35 +02:00
Jason Murray
3ff9398b92
Revert "Update classes on protobufs update" (#4824)
* Revert "Update classes on protobufs update"

* remove quotes to fix trunk.

---------

Co-authored-by: Tom Fifield <tom@tomfifield.net>
2024-09-23 20:34:19 +08:00
Todd Herbert
76900555e8 Swap SDA and SCL
SDA=P0.16, SCL=P0.13
2024-09-24 00:25:43 +12:00
Todd Herbert
1487ca2a30 Tidier macros 2024-09-24 00:25:43 +12:00
Todd Herbert
f960164c0e Add I2C bus to Heltec T114 header pins
SDA: P0.13
SCL: P0.16

Uses bus 1, leaving bus 0 routed to the unpopulated footprint for the RTC (general future-proofing)
2024-09-24 00:25:43 +12:00
Todd Herbert
11598beb16 Implement optional second I2C bus for NRF52840
Enabled at compile-time if WIRE_INFERFACES_COUNT defined as 2
2024-09-24 00:25:43 +12:00
Tom Fifield
1f8aa1efc7
Minor fix (#4666)
* Minor fixes

It turns out setting a map value with the index notation causes
an lookup that can be avoided with emplace. Apply this to one line in
the StoreForward module.

Fix also Cppcheck-determined highly minor performance increase by
passing gpiochipname as a const reference :)

The amount of cycles used on this laptop while learning about these
callouts from cppcheck is unlikely to ever be more than the cycles
saved by the fixes ;)

* Update PortduinoGlue.cpp
2024-09-23 18:22:06 +08:00
Jonathan Bennett
18aac0ba25 Consider the LoRa header when checking packet length 2024-09-22 16:09:46 -05:00
Tom Fifield
2e24d244be
Make Ublox code more readable (#4727)
* Simplify Ublox code

Ublox comes in a myriad of versions and settings. Presently our
configuration code does a lot of branching based on versions being
or not being present.

This patch adds version detection earlier in the piece and branches
on the set gnssModel instead to create separate setup methods for Ublox 6,
Ublox 7/8/9, and Ublox10.

Additionally, adds a macro to make the code much shorter and more
readable.

* Make trunk happy

* Make trunk happy

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-22 10:00:32 -05:00
Tom Fifield
7db98ca1da
Revert "Consolidate variant build steps (#4806)" (#4816)
This reverts commit 9f8d86cb25.
2024-09-22 19:39:35 +08:00