Commit Graph
1076 Commits
Author SHA1 Message Date
Scott Powell c34c368e3f * RP2040 build fixes
* new prefs file now "/prefs.json"
2026-07-18 20:12:21 +10:00
Scott Powell 10434a1cfd * added prefs initialisers to match original zeroed state 2026-07-18 19:22:53 +10:00
Scott Powell dae73ac971 * loadSerial(), support for \n and \r 2026-07-17 21:23:40 +10:00
Scott Powell bfb5310c6b * added unit tests for ConfigSerializer 2026-07-17 20:55:30 +10:00
Scott Powell f665188266 * new NodePrefs for companion 2026-07-17 16:05:10 +10:00
Scott Powell 0b77e07d30 Merge branch 'dev' into config-serializer 2026-07-16 17:22:28 +10:00
ripplebiz f1b84898a6 Merge pull request #1983 from rgregg/rak-ethernet
Support for RAK ethernet module
2026-07-15 18:53:38 +10:00
Liam Cottle 2ccf21337d Merge pull request #2897 from yarda/companion-add-mcu-temp-sensor
Added MCU temp sensor to the companion
2026-07-15 20:11:24 +12:00
Scott Powell 61de8cfc1a * ST7735 color/offset fix for Heltec Tracker V1 2026-07-15 14:00:10 +10:00
Scott Powell 06eec9e512 * misc fixes 2026-07-15 13:21:44 +10:00
Jaroslav Škarvada 75235de0fd Added MCU temp sensor to the companion
Fixes #2896
2026-07-14 17:43:33 +02:00
Scott Powell a4e7cdf4f3 * first draft of new ConfigSerializer. (simple embedded JSON prefs) 2026-07-15 01:23:57 +10:00
Ryan Gregg 3ba5de20f6 Merge remote-tracking branch 'upstream/dev' into rak-ethernet
# Conflicts:
#	examples/companion_radio/main.cpp
2026-07-13 23:06:00 -07:00
Huw Duddy c7573330ff Merge pull request #2951 from meshcore-dev/fast-st7735-display
Fast ST7735 Display Driver
2026-07-14 16:01:14 +10:00
Scott Powell fedef6b5f5 * HSPI fix 2026-07-14 15:46:36 +10:00
Scott Powell e46734aa6f * trying to get Heltec Tracker and Tracker V2 working 2026-07-13 23:27:50 +10:00
ripplebiz 16600797f7 Merge pull request #2917 from jirogit/fix/regionmap-load-eof-handling
fix(RegionMap): load() returns actual read success instead of hardcoded true
2026-07-13 18:28:26 +10:00
ripplebiz f599f52c2a Merge pull request #2942 from liamcottle/board/thinknode-m9
Add support for Elecrow ThinkNode M9
2026-07-13 17:10:54 +10:00
liamcottle 4d3131deed initial support for thinknode m9 2026-07-13 19:07:09 +12:00
ripplebiz f13cccb3fa Merge pull request #2937 from benskigomez/fix/gps-timesync-millis-overflow
sensors: fix millis() rollover that stalls GPS time-sync on long-uptime nodes
2026-07-13 17:06:09 +10:00
Jody Bentley a9334b1b82 sensors: fix millis() rollover stall in GPS time-sync + minor cleanups
next_check and next_gps_update stored a future millis() value in a signed
long and compared with a naive '>'. After the ~24.8-day millis() sign flip
the deadline sits above the wrapped millis(), so the block never runs again
and GPS->RTC time-sync (and the location cache refresh) stall permanently
until reboot. Switch to unsigned deadlines with the wrap-safe signed-
difference compare '(long)(millis() - deadline) > 0', matching the idiom in
Dispatcher::millisHasNowPassed.

Also: reorder the MicroNMEALocationProvider ctor init-list to declaration
order (silences -Wreorder) and drop the always-true 'if (_claims > 0)' guard
in claim() (claim() always runs after _claims++, so it is >= 1).
2026-07-12 18:30:40 -04:00
Alex Beal 54ccedefdb Merge branch 'dev' into pr-1446 2026-07-12 15:44:28 -06:00
jirogit a9112fefe4 fix(RegionMap): distinguish clean EOF from partial read in load()
Previously load() returned true unconditionally on file-open success,
masking truncated or corrupt /regions2 files. Additionally, the first
field of each entry record (r->id) used the same success-chaining
pattern as subsequent fields, so a clean EOF at a record boundary set
success=false and would have been indistinguishable from real
corruption once the return value was fixed.

The r->id read is now split out: n==0 is a clean EOF (break, success
retains its prior value from the header read), n!=sizeof(r->id) is a
partial read or corruption (break, success=false). load() now returns
success instead of an unconditional true, so its return value reflects
the actual parse outcome.

Companion fix to #2372, which fixed the same return-true hardcoding
in save(). (#1891 originally reported this on load() but was closed
when #2372 landed — that PR only touched save(); this addresses the
load() side.)
2026-07-09 19:59:05 -07:00
Wessel Nieboer 7966551627 fix misspelled RF switch pin macros in SX1268/LLCC68/SX1276 radio wrappers 2026-07-09 16:31:28 +02:00
Scott Powell e0eb1c9124 * timing fixes (courtesy of Taco) 2026-07-07 13:54:14 +10:00
Scott Powell 57e5a1229c * super fast ST7735 display driver 2026-07-06 15:09:18 +10:00
Kevin Le 446e6b7d41 Fixed hibernate/powerOff for ESP32 boards to stay at uA 2026-07-05 23:47:27 +07:00
Kevin Le 79967b6087 Added missing driver/rtc_io.h 2026-07-05 23:33:56 +07:00
Kevin Le 424b0b2b1e Put powerOff to NRF52Board 2026-07-05 21:20:39 +07:00
Kevin Le 5cf05c92cd Put powerOff and enterDeepSleep to ESP32Board 2026-07-05 21:20:13 +07:00
Quency-D 1a1239844c Merge branch 'dev' into solar-watchdog 2026-07-04 16:47:37 +08:00
ripplebiz 08293fca12 Merge pull request #2867 from entr0p1/feature/sx1262-ldo-support
SX1262 LDO Support
2026-07-04 12:35:03 +10:00
Liam Cottle 5ff5a3d954 Merge pull request #2372 from jirogit/fix/region-save-return-value
fix(RegionMap): save() returns actual write success instead of hardcoded true
2026-07-03 12:40:22 +12:00
Christoph Koehler f6843b10a6 refactor: split MeshTables::hasSeen into pure query + markSeen
hasSeen() was simultaneously a predicate and a mutator — it inserted the
packet hash on every miss, making five call sites that only wanted to mark
a packet as sent call it with the return value discarded.

Split into:
- wasSeen()   — pure predicate, no side effects
- markSeen()  — explicit insert

All query sites now call markSeen() immediately after wasSeen() returns
false, preserving identical runtime behaviour. The five mark-only send
sites (sendFlood, sendDirect, sendZeroHop x2) now call markSeen directly.

Also fixes three bridge sites (BridgeBase, ESPNowBridge, RS232Bridge)
that had the same query+implicit-insert pattern.

Tests: add test/test_mesh_tables/ covering wasSeen purity, markSeen,
dup stats, and clear. Update SHA256 mock to produce deterministic output
(previously finalize() was a no-op). Add Packet.cpp to native build filter.
2026-07-01 21:51:38 -06:00
entr0p1 5ed80856c4 SX1262 LDO Support
- Added build flag "SX126X_USE_REGULATOR_LDO" (set to 1 to enable) to use LDO for the SX1262 radio instead of DC-DC when the DCDC pin isn't wired up (e.g. t-echo lite)
- Added additional debug mode diagnostic messages during SX1262 init to better highlight faults
2026-06-30 16:55:16 +10:00
Scott Powell 412cfe4a96 * ACK packets being 'clipped' (in Dispatcher send). Needed to extend max_airtime timeout calc for short packets 2026-06-27 21:06:01 +10:00
Liam Cottle 2bb7495356 Merge pull request #2639 from sefinek/fix/typos-in-comments
fix: fix typos in source code comments
2026-06-27 11:26:54 +12:00
taco 1e5e1f4e0d always save boosted gain setting 2026-06-26 22:36:49 +10:00
taco 5eb4e7e5da fix: report error when rxgain setting is unsupported or rejected 2026-06-26 08:45:03 +10:00
taco 1a90abdbe2 return bool when setting rx boost 2026-06-26 07:44:01 +10:00
ripplebiz 2c61050cbf Merge pull request #2765 from fizzyfuzzle/ESP32-Reset-Reason
Add ESP32 Reset Reason to existing pwrmgt.bootreason cli command
2026-06-23 11:41:57 +10:00
Ryan Gregg 7f1ecc2045 Merge remote-tracking branch 'upstream/dev' into rak-ethernet
# Conflicts:
#	docs/faq.md
#	examples/companion_radio/main.cpp
2026-06-20 14:39:03 -07:00
Wessel Nieboer e77b6b101f Have CAD be a separate toggle (set cad on/off) 2026-06-14 15:20:58 +02:00
Wessel Nieboer 3f1c0fb60b Prevent packet errors from growing 2026-06-14 15:19:20 +02:00
Wessel Nieboer 3c1511884e Just check for not channel free 2026-06-14 15:19:19 +02:00
Wessel Nieboer 3095bc458b Also return busy if preamble detected 2026-06-14 15:19:19 +02:00
Wessel Nieboer 720cd75167 Use hardware channel activity detection for checking interference 2026-06-14 15:19:18 +02:00
Marco 33b5e2f91c Add ESP32 Reset Reason 2026-06-14 11:41:01 +02:00
Scott Powell 7728baae11 * fix for counter in RESP_CODE_CONTACTS_START 2026-06-14 18:39:34 +10:00
Scott Powell 326e8de439 * now handle the case where onAdvertRecv() should _replace_ the anon contact slot 2026-06-14 18:12:08 +10:00