Tom Fifield
bb9f003c24
Switch EnvironmentTelemetry to use UnitConversions ( #4972 )
...
We already have a central class for unit conversions, switch
EnvironmentTelemetry to that in preparation for HealthTelemetry.
2024-10-06 07:55:21 -05:00
Tom Fifield
7febb41727
Trunk format Screen.cpp ( #4970 )
2024-10-06 07:37:20 -05:00
github-actions[bot]
ad031dd69f
[create-pull-request] automated change ( #4971 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-10-06 07:28:05 -05:00
Tom Fifield
ebc3a66d10
Which Module wants a UI Frame? ( #4967 )
...
Previously our debug message for screens blandly stated
"Module wants a UI Frame"
This patch replaces the word Module with the name of the Module
in need of a frame a frame, enhancing debugging ability.
2024-10-06 06:40:23 -05:00
Tom Fifield
553e572eb5
Coalesce duplicated method GetTimeSinceMeshPacket ( #4968 )
...
GetTimeSinceMeshPacket was duplicated in PowerTelemetry and
EnvironmentalTelemetry, albeit one had a cooler name than the other.
As we add HealthTelemetry, to avoid creating a third instance of
this method, let's move it somewhere that makese sense.
Adds a new method GetTimeSinceMeshPacket to MeshService and updates
EnvironmentTelemetry and PowerTelemetry to use it.
2024-10-06 06:40:06 -05:00
medentem
0952d1b252
UserPrefs - Preconfigure up to 3 channels, GPS Mode ( #4930 )
...
* added up to 3 channels via userprefs
* added up to 3 channels via userprefs
* added up to 3 channels via userprefs
* trunk fmt
* Added USERPREFS for GPS MODE
2024-10-06 15:32:07 +08:00
Tom Fifield
8a370c5381
Revert "Revert "Remove unused Jlink monitoring files ( #4953 )" ( #4959 )" ( #4966 )
...
This reverts commit 783466f116
.
2024-10-05 19:34:51 -05:00
Tom Fifield
0c90a2274f
Remove unused headers ( #4954 )
...
These files had existing since 2020 without being used/modified.
2024-10-05 05:39:13 -05:00
Ben Meadors
783466f116
Revert "Remove unused Jlink monitoring files ( #4953 )" ( #4959 )
...
This reverts commit 55049ed547
.
2024-10-05 05:24:59 -05:00
Tom Fifield
55049ed547
Remove unused Jlink monitoring files ( #4953 )
...
The NRF52 JLINK_MONITOR are unmodified copies of code from Nordic
(https://github.com/NordicPlayground/j-link-monitoring-mode-debugging ),
which are not used by our firmware and have not been touched in ~4 years.
2024-10-05 05:24:12 -05:00
Jonathan Bennett
7e946d15ca
Move ifndef to fix test ( #4950 )
2024-10-04 22:59:00 -05:00
Jonathan Bennett
4db0c75c8e
Don't use a static decleration in a header file ( #4944 )
...
* Don't use a static decleration in a header file
* Actually add the rest of the commit
2024-10-04 12:06:02 -05:00
Ludovic BOUÉ
e7cfadacd8
Add Panel_ILI9342 to TFTDisplay.cpp ( #4822 )
...
* Add Panel_ILI9342 to TFTDisplay.cpp
[Panel_ILI9342](https://github.com/lovyan03/LovyanGFX/blob/master/src/lgfx/v1/panel/Panel_ILI9342.hpp )
* Add ILI9342_DRIVER to TFTDisplay.cpp
* Add ILI9342_DRIVER to Screen.cpp
* Add ILI9342_DRIVER to ScreenFonts.h
* Add ILI9342_DRIVER to main.cpp
* Add ILI9342_DRIVER to images.h
* Add ILI9342_DRIVER to NodeDB.cpp
* Add ILI9342 to PortduinoGlue.cpp
* Add ili9342 to PortduinoGlue.h
* Fix formatting
* Update Screen.cpp to add ILI9342_DRIVER
* Update TFTDisplay.cpp
* Update TFTDisplay.cpp
* Update Screen.cpp
* Update Screen.cpp
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: Tom Fifield <tom@tomfifield.net>
2024-10-04 07:47:14 -05:00
GUVWAF
673fe294f3
Add rxDupe
, txRelay
and txRelayCanceled
to LocalStats ( #4936 )
...
* Introduce `isFromUs()` and `isToUs()`
* Add rxDupe, txRelay and txRelayCanceled to LocalStats
2024-10-04 06:28:51 -05:00
gitbisector
236374491b
cleanupNeighbors() time difference fix ( #4941 )
2024-10-04 06:17:23 -05:00
Jonathan Bennett
befc2ece6f
Add a Userprefs Timezone String, to be replaced in the web flasher ( #4938 )
...
* Add a Userprefs Timezone String, to be replaced in the web flasher
* Use a volatile char buffer for slipstreamed strings.
* More refinement
2024-10-03 20:51:22 -05:00
github-actions[bot]
b2b60eccdb
[create-pull-request] automated change ( #4937 )
...
Co-authored-by: GUVWAF <78759985+GUVWAF@users.noreply.github.com>
2024-10-03 14:54:18 -05:00
github-actions[bot]
0a93261c06
[create-pull-request] automated change ( #4926 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-10-02 06:14:55 -05:00
Ben Meadors
00f15459ec
Userprefs prefix macros for clarity and consistency ( #4923 )
...
* Convert userprefs macros to prefixed ones for clarity
* Fix key
2024-10-02 06:14:24 -05:00
todd-herbert
b8044c4983
Tweak dimensions for Canned Message Notifications ( #4924 )
2024-10-02 05:37:08 -05:00
Ben Meadors
18f12584ab
Consolidate and shrink down the re-used strings in logs ( #4907 )
...
* Consolidate and shrink down the re-used strings in GPS
* Condense all the things
---------
Co-authored-by: GUVWAF <thijs@havinga.eu>
2024-10-01 15:38:36 -05:00
Thomas Göttgens
cae2e43dc6
revert .... revert ....
2024-10-01 16:36:44 +02:00
Thomas Göttgens
0d175a918c
misc library updates and compiler warnings, trunk upgrade
2024-10-01 16:02:10 +02:00
Ben Meadors
dc55d7dd98
Trunk it
2024-09-30 18:07:11 -05:00
TheMalkavien
553514e3b7
Fix #4911 : Partially rework some code to remove warnings about potential non-aligned memory accesses ( #4912 )
...
* * Adding the -Wcast-align compilation flag for
the rp2040.
* * Some rework to use a struct to access radio data
* Buffer will not be accessed by arithmetic pointer anymore
* * Remplace arithmetic pointer to avoid Warning
* * Avoid 2 little artitmetic pointer
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-30 17:56:29 -05:00
github-actions[bot]
1dace9a508
[create-pull-request] automated change ( #4917 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-09-30 17:35:35 -05:00
Jonathan Bennett
dd587419c7
Regenerate public key on boot, to avoid accidental mismatch. ( #4916 )
...
* Regenerate public key on boot, to avoid accidental mismatch.
* Fix ifdefs
2024-09-30 17:06:31 -05:00
Ben Meadors
8ad89ba724
Allow for better target level Radiolib exclude plumbing ( #4906 )
...
* WIP
* LR11x0
* Anothern
* =1
2024-09-30 05:14:22 -05:00
GUVWAF
3492c9aa99
Construct StoreForwardModule for Portduino as well ( #4903 )
...
* Construct StoreForwardModule for Portduino as well
* Remove duplicate variables
2024-09-29 16:17:23 -05:00
Michael Gjelsø
d73cbf14d5
Get accelerometerThread running from AdminModule. ( #4886 )
2024-09-29 11:49:16 -05:00
dahanc
d41d4c930e
When importing config, keep Bluetooth on and defer rebooting until co… ( #4898 )
...
* When importing config, keep Bluetooth on and defer rebooting until config is committed
* One more place that was prematurely disabling Bluetooth
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-29 07:30:10 -05:00
Ben Meadors
403e5c304e
Fix: Not being able to stop Ext. Notification nagging for screenless devices ( #4899 )
...
* Move logic up to button thread for screen-less devices
* Comment doesn't apply
* Fiddy
---------
Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
2024-09-29 07:29:53 -05:00
Ben Meadors
dcb2707d94
Return queue status on rate limit throttling ( #4901 )
2024-09-29 07:28:20 -05:00
Thomas Göttgens
0a09d9ae20
Merge branch 'master' into portexpander-keyboard
2024-09-29 12:27:00 +02:00
Thomas Göttgens
7289f36600
Merge branch 'master' into t3s3-1121
2024-09-28 17:51:21 +02:00
Thomas Göttgens
06dab4fa13
Don't process RX when region unset
2024-09-28 16:27:38 +02:00
GUVWAF
12efedec42
Potential fix for bad Rx performance on T1000-E ( #4885 )
...
* Potential fix for bad Rx performance on T1000-E
* validate and refactor RF switching, eliminate godmode
---------
Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
2024-09-28 09:24:13 -05:00
Thomas Göttgens
c650e7d273
finish TLora C6 Support, without bluetooth for now
2024-09-28 13:42:32 +02:00
Thomas Göttgens
f3213a5b2f
Merge branch 'master' into esp32-c6
2024-09-28 13:39:55 +02:00
caveman99
f28f5e07b7
[create-pull-request] automated change
2024-09-28 11:38:10 +00:00
Thomas Göttgens
62c306a14b
Merge branch 'master' into esp32-c6
2024-09-28 12:33:50 +02:00
Thomas Göttgens
016e1005df
Merge branch 'master' into t3s3-1121
2024-09-28 11:37:42 +02:00
Jonathan Bennett
6e1aa52723
More store-n-forward on native
2024-09-28 11:37:27 +02:00
Jonathan Bennett
5ff265c196
First stab at enabling store and forward for Native
2024-09-28 11:37:27 +02:00
Thomas Göttgens
1f08401070
Merge pull request #4892 from dahanc/master
...
Only log "Setting DIO2 as RF switch" when doing so and fix battery level
2024-09-28 11:36:54 +02:00
Thomas Göttgens
a39280e9df
Merge pull request #4893 from meshtastic/softSleep
...
Only check hardsleep threshold if GPS softsleep is supported
2024-09-28 11:35:57 +02:00
GUVWAF
48fa9f2242
Only check threshold if GPS softsleep is supported
2024-09-28 09:34:37 +02:00
David Huang
7f59cb54ef
Instead of having LipoBatteryLevel forward requests to AnalogBatteryLevel if there's no Lipo sensor, just have lipoInit return false. The forwarding didn't work because it never called analogInit.
2024-09-27 23:35:57 -05:00
David Huang
36a66df923
Don't log "Setting DIO2 as RF switch" unless we're actually going to do it. Also, if there's an error setting DIO2, log the error code.
2024-09-27 21:53:13 -05:00
Ben Meadors
8efc15f4d9
Ignore seen phoneapi packets ( #4888 )
...
* Ignore PhoneAPI packet if it's been seen
* ignoramus
* Also keep track of the last 20 packet IDs
* Fill
* Make this match the nimble one
* Add the log too
* Ignore zero ID packets
* Remove message entirely
* TRunkt
2024-09-27 20:09:53 -05:00
Ken Piper
0e0811eccd
Implement GPIO pin allowlist ( #4882 )
2024-09-27 19:31:05 -05:00
Jonathan Bennett
fd1b68513a
Add sx126x_ant_sw for Native ( #4887 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-27 19:29:44 -05:00
Thomas Göttgens
cb1cf055b1
Merge branch 'master' into esp32-c6
2024-09-27 22:51:29 +02:00
Thomas Göttgens
6c2e60d415
Merge branch 'master' into t3s3-1121
2024-09-27 22:22:42 +02:00
Jonathan Bennett
ef223b1195
use delete[] to avoid leaking memory ( #4883 )
2024-09-27 14:55:55 -05:00
Ben Meadors
30356dcd97
Retroactive trunkinate
2024-09-26 19:46:17 -05:00
Jonathan Bennett
5f6d9c3e27
Add pkc test ( #4878 )
...
* Add a second delay() to get the unit tests running on Rak4631
* Add test_PKC_Decrypt
* Remove cruft from test case
2024-09-26 19:33:08 -05:00
TheMalkavien
4794cdb120
Fix (some ?) memory alignment issues on the crypto part - resulting in crashes or strange behavior ( #4867 )
...
* Replace multiple potentially non aligned pointer dereference (#4855 )
First step to fix some Crypto crashes or strange behaviors
* Makes the two Crypto byte buffers aligned (#4855 )
Fix #4855 , and probably multiple Crypto problems depending on hardware
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: GUVWAF <78759985+GUVWAF@users.noreply.github.com>
2024-09-26 17:44:11 -05:00
Thomas Göttgens
a32233bb92
fixa de typo too
2024-09-26 12:15:37 +02:00
Thomas Göttgens
fff2e435b5
Merge branch 'master' into t3s3-1121
2024-09-26 12:13:45 +02:00
Thomas Göttgens
8f84a96b69
refactor: typo fix in macro definition
2024-09-26 12:12:08 +02:00
Thomas Göttgens
11c17ec78c
oh well
2024-09-26 11:39:35 +02:00
Thomas Göttgens
b4bdf604f5
tryfix
2024-09-26 11:08:49 +02:00
Thomas Göttgens
833d7f65bc
fix toolchains between old and new ESP32
2024-09-26 10:18:45 +02:00
Ben Meadors
9bebad2dbe
Trunkt
2024-09-25 19:54:14 -05:00
Szetya
14019f2afa
Update WaypointModule.cpp ( #4870 )
...
In INVERTED display mode, the compass ring was not visible.
2024-09-25 19:09:27 -05:00
Thomas Göttgens
12481b568a
fix a lot of nuisances reported by cppcheck ( #4872 )
...
* fix a lot of nuisances reported by cppcheck
* fix portduino
2024-09-25 19:09:06 -05:00
Thomas Göttgens
3072b2a444
Merge branch 'master' into esp32-c6
2024-09-26 00:20:00 +02:00
Thomas Göttgens
5c77e29d66
Merge branch 'master' into t3s3-1121
2024-09-26 00:17:41 +02:00
Thomas Göttgens
118809fbfc
Account for size of Envelope when allocating buffer. ( #4819 )
...
* Account for size of Envelope when allocating buffer.
INFO | 09:29:20 568 [mqtt] Subscribing to msh/2/e/LongFast/+
INFO | 09:29:20 568 [mqtt] Subscribing to msh/2/json/LongFast/+
INFO | 09:29:20 568 [mqtt] Subscribing to msh/2/e/PKI/+
DEBUG | 09:29:20 568 [mqtt] Publishing enqueued MQTT message
ERROR | 09:29:20 568 [mqtt] Panic: can't encode protobuf reason='bytes size exceeded'
assert failed: size_t pb_encode_to_bytes(uint8_t*, size_t, const pb_msgdesc_t*, const void*) mesh-pb-constants.cpp:18 (0)
* save some mem
2024-09-25 17:13:04 -05:00
Ben Meadors
baf9cf5a59
Encapsulate RadioLibInterface receive IRQ logic ( #4866 )
...
* Encapsulate RadioLibInterface receive IRQ logic
* More concise
* Trunk
2024-09-25 16:19:18 -05:00
Ben Meadors
3a2fa118a2
Merge branch 'master' into detsensor_broadcast_changes
2024-09-25 13:57:49 -05:00
Thomas Göttgens
d4e8452c60
Tbeams have no ADC ( #4871 )
2024-09-25 13:51:11 -05:00
Ben Meadors
4128d75ad4
IS_ONE_OF macro to make long chains of conditions more concise and easy to follow ( #4860 )
...
* Is one of macro
* Moar
* Whoops
* Trunk
* isOneOf function backed macro
2024-09-25 13:50:00 -05:00
Augusto Zanellato
ed4527cfa5
address review comments
2024-09-25 20:02:22 +02:00
Thomas Göttgens
26112ba001
Support T3S3 LR1121 variant
2024-09-25 18:56:17 +02:00
Ben Meadors
a7c379961a
New detection sensor trigger type value
2024-09-25 07:01:15 -05:00
Ben Meadors
02d9d8b76c
Merge branch 'master' into detsensor_broadcast_changes
2024-09-25 06:30:09 -05:00
todd-herbert
d1138d51e5
Wrangle module frames with I2C keyboard ( #4817 )
...
* Only suppress UI nav if module using keyboard input
* CardKB combo to dismiss text message and waypoint
Currently assigned to Fn + Delete
2024-09-25 06:27:04 -05:00
Ben Meadors
31e952c72e
Merge branch 'master' into detsensor_broadcast_changes
2024-09-25 06:26:14 -05:00
github-actions[bot]
9d7938f570
[create-pull-request] automated change ( #4865 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-09-25 06:25:56 -05:00
David
9456c42fc0
Refactor AccelerometerThread.h ( #4831 )
...
* Initial upload
* Tidy up
* Update ICM20948Sensor.cpp
* Update AccelerometerThread.h
* Initial upload
* Tidy up
* Update ICM20948Sensor.cpp
* Update AccelerometerThread.h
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-25 06:25:31 -05:00
David
40b3dbaa70
Add MAX17048 lipo fuel gauge ( #4851 )
...
* Initial commit
* Update MAX17048Sensor.cpp
* Update EnvironmentTelemetry.cpp
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-25 05:34:53 -05:00
dylanli
1293c5cdd4
Support for Seeed XIAO S3 Board ( #4850 )
...
* feat: add seeed-xiao-s3 board defination and pins defination
* chore: add SEEED XIAO S3 into mesh pb
* fix: fix trunk fmt check failed
* Trunk fmt variant.h
* Restore automatically generated file
---------
Co-authored-by: Tom Fifield <tom@tomfifield.net>
2024-09-25 18:27:14 +08:00
caveman99
f73aa8aa82
[create-pull-request] automated change
2024-09-25 08:28:33 +00:00
Tom Fifield
e6e05dda1e
Merge branch 'master' into master
2024-09-25 15:10:48 +08:00
Thomas Göttgens
65104d5d8c
fix #4844 ( #4859 )
2024-09-24 16:51:07 -05:00
Augusto Zanellato
881f133021
Merge branch 'master' into detsensor_broadcast_changes
2024-09-24 23:00:35 +02:00
Tom Fifield
adb094ebc9
Remove old comments from main ( #4849 )
...
These comments were circa 4 years old. Remove them.
2024-09-24 06:08:32 -05:00
Tom Fifield
b709d47832
Fix Ublox M10 Setup ( #4842 )
...
There is no EXTINT pin available on the Tdeck, which uses
the Ublox M10 GPS. Therefore our previous hack to use that pin
makes the GPS not work. That workaround was implemented to
fix sleep issues which have now since been fixed with the
state machine.
This patch restores the state prior to the hack, which is
known-working.
Additionaly, it was discovered that M10s hate it when you
try and save to non-extistent eeprom/SPI flash.
This patch creates a new SAVE command for the M10 that fixes
this issue.
Many thanks to @MisterC925 whose report and testing was
essential for this fix.
fixes https://github.com/meshtastic/firmware/issues/4625
Co-authored-by: Ken McGuire <kenm@paonia.com>
2024-09-24 05:50:03 -05:00
Augusto Zanellato
01d42d4728
Merge branch 'master' into detsensor_broadcast_changes
2024-09-24 11:53:41 +02:00
Augusto Zanellato
ce480ae626
fix comment style
2024-09-24 11:16:04 +02:00
Augusto Zanellato
139686d639
bump protobufs
2024-09-24 11:11:16 +02:00
Jonathan Bennett
c39d270f40
Build message in printBytes, to not spam BLE log ( #4843 )
2024-09-24 12:41:28 +08:00
Tom Fifield
428a567078
Wire 1 is PIN_WIRE1_SDA ( #4840 )
...
Based on #4745 , PIN_WIRE1_SDA is the 'second' wire interface.
This pach amends the check to determine whether a device has two
wire interfaces should use PIN_WIRE1_SDA, rather than PIN_WIRE_SDA.
2024-09-23 19:16:44 -05:00
Ben Meadors
0ad1f776ae
Manually regen protos for now
2024-09-23 18:53:01 -05:00
Ben Meadors
e78c706999
Fix RAK4631 accelerometer ( #4837 )
2024-09-23 18:40:54 -05:00
Ben Meadors
c442cd7267
Remove some straggler now
2024-09-23 15:53:42 -05:00
Ben Meadors
9cbabb0468
Teardown bluetooth phoneAPI better and fix client notification issue ( #4834 )
...
* Teardown bluetooth phoneAPI better and fix client notification issue
* Fix client notification draining
2024-09-23 15:51:05 -05:00
Jonathan Bennett
9a7a4d3814
Check for null before printing debug ( #4835 )
2024-09-23 13:56:26 -05:00