Jonathan Bennett
7e946d15ca
Move ifndef to fix test ( #4950 )
2024-10-04 22:59:00 -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
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
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
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
Ben Meadors
dcb2707d94
Return queue status on rate limit throttling ( #4901 )
2024-09-29 07:28:20 -05: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
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
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
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
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
fff2e435b5
Merge branch 'master' into t3s3-1121
2024-09-26 12:13:45 +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
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
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
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
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
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
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
caveman99
f73aa8aa82
[create-pull-request] automated change
2024-09-25 08:28:33 +00:00
Ben Meadors
0ad1f776ae
Manually regen protos for now
2024-09-23 18:53:01 -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
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
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
Jonathan Bennett
18aac0ba25
Consider the LoRa header when checking packet length
2024-09-22 16:09:46 -05:00
thebentern
f324ab7de7
[create-pull-request] automated change
2024-09-21 15:16:31 +02:00
Thomas Göttgens
6ffdc9875b
First stab at ESP32-C6 support for TLora-C6
2024-09-20 19:37:47 +02:00
github-actions[bot]
deada41cee
[create-pull-request] automated change ( #4765 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-09-18 10:49:12 -05:00
Ben Meadors
777bcf691a
Initial PhoneAPI rate-limiting of messages on certain ports ( #4756 )
2024-09-18 10:13:07 -05:00
github-actions[bot]
923458bc18
[create-pull-request] automated change ( #4754 )
...
Co-authored-by: jp-bennett <5630967+jp-bennett@users.noreply.github.com>
2024-09-17 17:55:16 -05:00
Ben Meadors
50fb4ab22a
Implement optional hops_away on NodeInfo/Lite ( #4747 )
...
* Implement optional hops_away on NodeInfo/Lite
* Trunk
2024-09-17 12:08:04 -05:00
Thomas Göttgens
f5016763fd
change evaluation order to silence warning about "found" ( #4749 )
2024-09-17 10:33:21 -05:00
github-actions[bot]
a47570d65a
[create-pull-request] automated change ( #4746 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-09-17 06:52:42 -05:00
Jonathan Bennett
a967dd52f3
More useful PKC logging ( #4742 )
2024-09-17 06:31:39 -05:00
Thomas Göttgens
4b5bcf52d2
Merge pull request #4691 from S5NC/rak11200-pin-name-correction
...
Rak11200 pin name correction
2024-09-17 11:42:40 +02:00
Thomas Göttgens
bc753e6903
trunk fmt
2024-09-17 15:24:11 +08:00
S5NC
06cd9abd81
Update SX126xInterface.cpp
2024-09-17 15:24:11 +08:00
jp-bennett
39c90dd581
[create-pull-request] automated change
2024-09-17 02:53:44 +00:00
github-actions[bot]
f37276d5fc
[create-pull-request] automated change ( #4736 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-09-16 10:32:21 -05:00
Jonathan Bennett
ff8baa1c85
Don't use PKC on a non-primary channel unless specifically requested ( #4715 )
...
* Don't use PKC on a non-primary channel unless specifically requested
* Don't change from channel 0 if we can send a PKC packet.
2024-09-15 09:26:43 -05:00
Ben Meadors
9ac0e26d42
Add option to preserve private key for factory reset (config) ( #4679 )
...
* Add option to preserve private key for factory reset (config)
* Typo fix
* Copy the key in the right direction, and set the size.
* Don't set the key size back to 0 right after setting it to 32.
* Set the key size before using it to do a memcpy.
* Use the right key_size for backing up private_key
* Don't factoryReset() for a missing nodeDB
* Disable Bluetooth in AdminModule when resetting device settings or nodeDB to avoid race
* Add checks for valid objects before deinit bluetooth
* Add disableBluetooth to handleSetConfig, handleSetModuleConfig, and commit settings
---------
Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
2024-09-11 08:42:26 -05:00
Jonathan Bennett
4e850296b6
Fix repeatedly getting new NodeNum and add more debug ( #4674 )
...
* All the debug
* Change `memccpy()` to `memcpy()`
* Brint all the bytes of the MAC Address from the NodeDB
* Check for blank MAC Address in ourown NodeDB entry
* One more `memccpy()`
* Clean-up debug log
---------
Co-authored-by: GUVWAF <thijs@havinga.eu>
2024-09-10 13:24:57 -05:00
GUVWAF
4ed12bf21d
Try fix repeatedly getting a new NodeNum ( #4670 )
2024-09-09 14:22:32 -05:00
Jonathan Bennett
bf34329033
Adds the data bitfield and ok_to_mqtt bit ( #4643 )
...
* Don't filter PKI packets just for being encrypted.
* Add ok_to_mqtt config and bit
* Bitfield
* Adjust dontmqttmebro logic.
* Manipulate bitfield only in router.cpp
* Want_ack is not want_response
* Bitfield macros
* Use new Bitfield macro in MQTT.cpp
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-07 18:21:59 -05:00
github-actions[bot]
c77b89d85c
[create-pull-request] automated change ( #4645 )
2024-09-06 18:51:22 -05:00
caveman99
b8cee51e84
[create-pull-request] automated change
2024-09-06 20:27:28 +00:00
Thomas Göttgens
35b47467c7
Merge pull request #4639 from zerolint/master
...
RAK13800 Ethernet improvements
2024-09-06 15:11:10 +02:00
Thomas Göttgens
8f35a42f4f
tryfix #4384 ( #4642 )
...
* tryfix #4384 - don't assume we want that functionality if the Accelerometer was found. This is only for T-Watch
* Add config.display.wake_on_tap_or_motion default to RAK
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-06 06:55:56 -05:00
zerolint
d72a836e07
RAK13800 Ethernet improvements
...
Fixes (#3618 ) by allowing more time for slower requests.
Resolve Syslog not maintaining client causing issues on RAK13800.
Resolve Ethernet static IP setting subnet as gateway IP.
Reduce comment and log message ambiguity around API.
Remove duplicate #if !MESHTASTIC_EXCLUDE_WEBSERVER block.
2024-09-06 11:45:43 +02:00
Thomas Göttgens
011e640e95
Add LR11x0 firmware version to init.
2024-09-06 09:47:43 +02:00
Thomas Göttgens
7c6454f171
bring 2.4G back in line with preset bandwidth ( #4634 )
2024-09-05 15:49:08 -05:00
gitbisector
bb9ddcf2b5
Same priority packets processed in enqueue order ( #4608 )
...
* Same priority packets processed in enqueue order
* Prefer same prio pkts on mesh over new ones.
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-09-04 08:31:30 -05:00
Thomas Göttgens
e91dcb4ec3
Merge branch 'master' into NextHopRouter
2024-09-04 09:57:03 +02:00
Thomas Göttgens
ff40a3f120
fix RF switch for Tracker E ( #4621 )
...
* fix RF switch for Tracker E
* fix all flags for Radiolib
* hopefully fix LR1110
* update to latest radiolib master - thanks @GUVWAF
2024-09-03 14:21:40 -05:00
Thomas Göttgens
6fc4a1754b
Radiolib API Changes
2024-09-03 13:12:39 +02:00
Thomas Göttgens
f9e513f4fd
Merge branch 'Tracker-1000E' of github.com:meshtastic/firmware into Tracker-1000E
...
# Conflicts:
# src/mesh/LR11x0Interface.cpp
2024-09-03 09:59:44 +02:00
Thomas Göttgens
7dad2286e2
trunk fmt
2024-09-03 09:58:27 +02:00
Thomas Göttgens
8598645931
- use setRfSwitchTable
...
- ditch Godmode
- fixes Signedness Error in Loop.
- add V3 factory erase for 7.3.0 softdevice
2024-09-03 09:26:41 +02:00
Ben Meadors
b526a3ad53
Own node should be favorited and have zero hops away ( #4618 )
2024-09-02 17:51:02 -05:00
Thomas Göttgens
2f0c19ebea
- use setRfSwitchTable
...
- ditch Godmode
- fixes Signedness Error in Loop.
- add V3 factory erase for 7.3.0 softdevice
2024-09-02 15:06:06 +02:00
GUVWAF
56223710b5
More priorities for different types of MeshPackets ( #4606 )
2024-09-01 10:29:53 -05:00
github-actions[bot]
e45a358de0
[create-pull-request] automated change ( #4594 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-09-01 09:20:10 -05:00
Jonathan Bennett
b71e12c5e5
Phone admin work ( #4599 )
...
* Don't throw an error on the sessionkey admin tag
* Throw an error on packet sent to 0
2024-08-31 15:04:35 -05:00
GUVWAF
eb071ec80d
Set high priority for text messages ( #4592 )
2024-08-30 14:54:44 -05:00
github-actions[bot]
8144dcbc25
[create-pull-request] automated change ( #4591 )
...
Co-authored-by: GUVWAF <78759985+GUVWAF@users.noreply.github.com>
2024-08-30 13:46:51 -05:00
Manuel
6a24566efb
Lilygo T3S3 E-Paper support ( #4569 )
...
* t3s3 e-paper support
* remove GPS autodetect (which leads to crashes during startup when no GPS present)
* update EINK defines
* keep definitions for external GPS connector but disable GPS auto scan by default
2024-08-30 05:53:06 -05:00
Jonathan Bennett
5bc17a9911
Key regen and MQTT fix ( #4585 )
...
* Add public key regen
* Properly label and handle PKI MQTT packets
* Extra debug message to indicate PKI_UNKNOWN_PUBKEY
* Ternary!
* Don't call non-existant function on stm32
* Actually fix STM32 compilation
2024-08-29 16:28:03 -05:00
Ben Meadors
171512d2f6
Fixed buzzer
2024-08-29 11:42:27 -05:00
Ben Meadors
a34170654c
Fix T1000-E default to turn on buzzer for Ext. Notification ( #4575 )
2024-08-28 07:24:41 -05:00
Jonathan Bennett
ada61ae178
Don't compare nodeDB macaddr to owner.macaddr, because in rare cases that may be unset. ( #4562 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-08-27 14:49:58 -05:00
Jonathan Bennett
b9a8683a4b
Mask out random bits when doing queue ordering ( #4561 )
...
* Mask out random bits when doing queue ordering
* Parenthesis
2024-08-26 15:48:47 -05:00
Jonathan Bennett
5824a8f4c1
Deal with admin_key being repeated ( #4558 )
2024-08-26 12:29:44 -05:00
Ben Meadors
d0fd17134e
Protos
2024-08-26 07:48:07 -05:00
Ben Meadors
d6dac1737a
Userlite mem comparison ( #4552 )
2024-08-24 12:19:31 -05:00
github-actions[bot]
23844389ac
[create-pull-request] automated change ( #4544 )
...
Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
2024-08-23 20:44:14 -05:00