Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
25c1867
Add min/max/avg history queries to repeaters
Maxwell456 Nov 8, 2026
f678f6a
Merge pull request #3784 from Maxwell456/feature/repeater-history
fdlamotte Nov 10, 2026
ef6ef2e
GPS: GPS_BAUD_PROBE_LIST as a build flag for any NmeaGpsDriver; enabl…
AlexandrTyshchenko Nov 10, 2026
ef4477b
Merge pull request #3798 from AlexandrTyshchenko/feature/gps-baud-pro…
fdlamotte Nov 10, 2026
196ca97
GPS guard: show "time wait" instead of "rej nofix" between fixes
AlexandrTyshchenko Nov 10, 2026
2246586
Fix stack-buffer overflow in CLI reply buffers
Valentin-Metz Nov 11, 2026
09eac55
Merge pull request #3807 from Valentin-Metz/fix/cli-reply-buffer-over…
liamcottle Nov 11, 2026
0147165
tests: revert rak13302 tests
fdlamotte Nov 11, 2026
e7c6d07
Merge pull request #3810 from fdlamotte/revert_rak13302_tests
fdlamotte Nov 11, 2026
85bba10
companion_radio: rewrite mdns part removing String class
fdlamotte Nov 11, 2026
74f1f5a
Revert "Merge pull request #3784 from Maxwell456/feature/repeater-his…
fdlamotte Nov 11, 2026
5a762ad
Merge pull request #3812 from fdlamotte/revert-3784
fdlamotte Nov 11, 2026
79e0f4e
gps_guard: remove time alert telemetry
fdlamotte Nov 11, 2026
d1d8027
Merge pull request #3811 from fdlamotte/mdns_using_char
fdlamotte Nov 11, 2026
1e384b1
Merge pull request #3813 from fdlamotte/gps_guard_telem_removal
fdlamotte Nov 11, 2026
bed7286
CommonCLI: get/set loc to replace gps advert command
fdlamotte Nov 11, 2026
0f51fd7
Merge pull request #3815 from fdlamotte/advert_loc_pref
fdlamotte Nov 11, 2026
c4258a5
Merge pull request #3801 from AlexandrTyshchenko/feature/gps-guard-ti…
fdlamotte Nov 11, 2026
b920e7d
GPS guard: drop leftovers of the alert telemetry channel
AlexandrTyshchenko Nov 11, 2026
6e6b7b1
Merge pull request #3817 from AlexandrTyshchenko/docs/gps-guard-alert…
fdlamotte Nov 11, 2026
e1c1d76
GPS: stop MicroNMEA reading past the NMEA buffer
nullrouten0 Nov 11, 2026
7812eca
Merge pull request #3819 from nullrouten0/fix/gps-nmea-buffer-tail
fdlamotte Nov 11, 2026
e3c1c34
fix for mdns string not compiling due to ambiguous overload
liamcottle Nov 12, 2026
bb87031
Merge pull request #3822 from liamcottle/fix/3811
liamcottle Nov 12, 2026
66ab992
Merge upstream/dev (bb870313) into integration
marcelverdult Nov 12, 2026
275c56e
docs: advert.loc in the CLI table doc, GPS_BAUD_PROBE_LIST default in…
marcelverdult Nov 12, 2026
6f781cc
docs: note for the upstream/dev sync of 12.11.2026
marcelverdult Nov 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: ./.github/actions/setup-build-environment

- name: Run Unit Tests
run: pio test -e native -e native_kiss_modem -e native_core -e native_ofast -e native_chat -e native_identity_store -e native_node_prefs -e native_radio_wrappers -e native_server -e native_sensor -e native_repeater -e native_repeater_full -e native_region -e native_radio_chips -e native_variant_target -e native_variant_target_override -e native_companion -e native_esp32_rtc_backup -e native_common_cli -e native_common_cli_nrf52 -e native_common_cli_esp32 -e native_common_cli_rs232 -e native_common_cli_espnow -e native_companion_buzzer -e native_companion_wifi -e native_companion_display -e native_companion_all -e native_rak3401_onboard_radio -vv
run: pio test -e native -e native_kiss_modem -e native_core -e native_ofast -e native_chat -e native_identity_store -e native_node_prefs -e native_radio_wrappers -e native_server -e native_sensor -e native_repeater -e native_repeater_full -e native_region -e native_radio_chips -e native_variant_target -e native_variant_target_override -e native_companion -e native_esp32_rtc_backup -e native_common_cli -e native_common_cli_nrf52 -e native_common_cli_esp32 -e native_common_cli_rs232 -e native_common_cli_espnow -e native_companion_buzzer -e native_companion_wifi -e native_companion_display -e native_companion_all -vv

- name: Upload Test Results
# Upload test results even if the test step failed.
Expand Down
8 changes: 6 additions & 2 deletions docs/cli_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ GPS time is written to the clock only while such a fix is current, never earlier
Covers serial NMEA receivers (`MicroNMEALocationProvider`).

**Usage:**
- `gps guard`: status, e.g. `> ok 7sat time ok +1s`, `> rej region time rej nofix`, or `... ALERT gps-clk +3600s 75m` when a trusted fix has disagreed with the clock by the same offset for `GPS_GUARD_ALERT_MIN` minutes. While the alert is active, the offset in hours is also reported in telemetry on the next free channel.
- `gps guard`: status, e.g. `> ok 7sat time ok +1s`, `> rej region time rej nofix`, `> ok 7sat time wait` (last check passed, no current trusted fix to check again, e.g. GPS asleep between periodic fixes), or `... ALERT gps-clk +3600s 75m` when a trusted fix has disagreed with the clock by the same offset for `GPS_GUARD_ALERT_MIN` minutes.
- `gps guard on`, `gps guard off`: turn the guard on or off (saved, default on). While off, every fix and GPS time is accepted and `gps guard` shows `off`.
- `gps guard accept`: while an alert is active, confirm that the GPS time is right and apply it to the clock.
- `gps fence`, `gps fence <metres>`: fence radius around the configured `lat`/`lon` (`0` = off). Default `GPS_GUARD_FENCE_M` (1000); a value set here is saved.
Expand All @@ -1126,17 +1126,21 @@ Covers serial NMEA receivers (`MicroNMEALocationProvider`).

#### View or change the GPS advert policy
**Usage:**
- `get advert.loc`
- `set advert.loc <policy>`
- `gps advert`
- `gps advert <policy>`

**Parameters:**
- `policy`: `none`|`share`|`prefs`
- `none`: don't include location in adverts
- `share`: share gps location (from SensorManager)
- `prefs`: location stored in node's lat and lon settings
- `prefs`: location stored in node's lat and lon settings (can be different from gps value)

**Default:** `prefs`

**Note:** `gps advert` command is the old format but is only accessible when a gps is attached to the unit. It has been kept for compatibility but one should prefer using `get/set` commands instead.

---

### Sensors (When sensor support is compiled in)
Expand Down
3 changes: 3 additions & 0 deletions docs/refactoring/0011-variant-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -2146,6 +2146,9 @@ New macros in `target.h`, inside nothing (the GPS lines are not under `DISPLAY_C
`&board.periph_power`.
- `GPS_BAUD_PROBE_LIST` (promicro, B): already a macro in the ini; the shared file reads it as
`target.cpp` does today.
Since upstream #3798 (sync of 12.11.) `NmeaGpsDriver` reads the macro itself as the default
of its constructor, so `promicro` no longer needs the special case and the shared file
needs none either.
- The type of `sensors` is not a new field: `target.h` already says
`extern EnvironmentSensorManager sensors;`, and `decltype(sensors) sensors(nmea);` defines
exactly that type. Checked to compile with `g++ -std=gnu++11 -c` on a stand-in (a
Expand Down
8 changes: 5 additions & 3 deletions docs/refactoring/0013-cli-command-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ falls through to the next branch and, in the end, to "Unknown command".
| `allow.read.only` | `OK` | on if the value starts with `on`, save | |
| `flood.advert.interval` | `OK` or `Error: interval range is 3-168 hours` | hours, `updateFloodAdvertTimer`, save | 0 allowed (off); 1 and 2 are errors |
| `advert.interval` | `OK` or `Error: interval range is 60-240 minutes` | stored as minutes / 2, `updateAdvertTimer`, save | 0 allowed; see quirk on zeroing |
| `advert.loc` | `OK` or `Error, invalid policy` | `none`, `share` or `prefs` (prefix match) to `advert_loc_policy`, save | upstream #3815; all builds, unlike `gps advert` |
| `guest.password` | `OK` | 15 characters, save | no echo |
| `prv.key` | `OK, reboot to apply! New pubkey: <hex>` or `Error, bad key` | `saveIdentity(new id)` | accepted over the air; valid keys only |
| `name` | `OK` or `Error, bad chars` | 31 characters, save | longer names are cut without an error |
Expand All @@ -148,7 +149,8 @@ falls through to the next branch and, in the end, to "Unknown command".
### `get <key>`

All replies start with `> `. Keys: `allow.read.only` (on or off),
`flood.advert.interval`, `advert.interval` (minutes), `guest.password`, `prv.key`
`flood.advert.interval`, `advert.interval` (minutes), `advert.loc` (`> none|prefs|share`
or `Error, invalid policy`), `guest.password`, `prv.key`
(ts 0, uppercase hex), `name`, `repeat`, `lat`, `lon`, `flood.max.type`
(`> grpdata:4 trace:3`, `> none` when empty, unnamed types as numbers), `flood.max.advert`,
`flood.max.unscoped`, `flood.max`, `owner.info` (newline shown as `|`, cut at 159
Expand Down Expand Up @@ -184,8 +186,8 @@ single precision noise (`869.6179809` for 869.618).
| File | Tests | Covers |
|---|---|---|
| `test_cli_commands.cpp` | 47 | dispatch order, board hook, prefix quirks, power, clock, advert, neighbors, tempradio, password, erase, ver, board, powersaving, log, stats, routing |
| `test_cli_set.cpp` | 49 | every `set` key, ranges, truncation, the zeroing in `savePrefs`, radio precedence, bridge and `extra.sf` variants |
| `test_cli_get.cpp` | 24 | every `get` key, prefix order, hex output, variants, fallback |
| `test_cli_set.cpp` | 52 | every `set` key, ranges, truncation, the zeroing in `savePrefs`, radio precedence, bridge and `extra.sf` variants |
| `test_cli_get.cpp` | 25 | every `get` key, prefix order, hex output, variants, fallback |
| `test_cli_region.cpp` | 34 | every `region` sub command, limits, errors, callbacks |
| `test_cli_sensor.cpp` | 39 | `sensor get\|set\|list` with paging, `gps ...` (GPS build) or "Unknown command" (others) |
| `test_cli_flood_type.cpp` | 19 | `set` and `get flood.max.type`: names and numbers, sorted list, `off`, range and type errors, damaged stored list, full list |
Expand Down
128 changes: 128 additions & 0 deletions docs/refactoring/sync-upstream-dev-20261112.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Sync upstream/dev into integration (12.11.2026)

Merge of `upstream/dev` bb870313 (24 commits since the last sync base b8ae75d2) into
`integration` 5e32b39d, branch `claude/sync-upstream-dev-20261112-cdc32f`. The merge is a
signed merge commit (no rebase, no squash). Nothing is pushed and nothing is merged into
`integration`.

## What upstream brought

- GPS: #3798 `GPS_BAUD_PROBE_LIST` as a build flag for any `NmeaGpsDriver` (the constructor
default now reads it; enabled on Station G2 and G3), #3801 GPS guard shows `time wait`
instead of `rej nofix` between fixes, #3813 and #3817 drop the guard's alert telemetry
channel (`getAlertOffset()` and the `querySensors` code are gone), #3819 MicroNMEA no
longer reads past its buffer (16 zeroed tail bytes).
- #3815 CLI `get advert.loc` and `set advert.loc <none|share|prefs>`, usable without a GPS;
`gps advert` stays for GPS builds.
- #3807 stack-buffer overflow fix in CLI reply buffers (touches the three `MyMesh.cpp`).
- #3811 and #3822 mDNS name built without `String` (`examples/companion_radio/main.cpp`).
- #3784 repeater history queries and its revert #3812 (net effect in this range: none).
- 0147165b reverts the rak13302 tests: `test/test_rak3401_board_startup/`,
`test/test_rak3401_onboard_radio/` and `[env:native_rak3401_onboard_radio]` are gone.

## Probe and merge

`git merge-tree --write-tree --name-only HEAD upstream/dev` listed 3 conflict files. The
merge commit is 66ab992a (signed, `gpgsig` present in the commit object).

## Conflicts and how they were solved

- `src/helpers/CommonCLI.cpp`: upstream put `advert.loc` into the old `else if` chains of
`handleSetCmd` and `handleGetCmd`, which the fork replaced with the tables of step 13.
The fork side stays. `advert.loc` is now `CommonCLIImpl::setAdvertLoc` / `getAdvertLoc`
and one row in `kSetCmds` (`"advert.loc "`) and one in `kGetCmds` (`"advert.loc"`), placed
before `guest.password`. Not gated by `ENV_INCLUDE_GPS`, as upstream. Replies are
upstream's (`OK`, `Error, invalid policy`, `> none|prefs|share`). Neither name is a prefix
of another row, so the order does not matter. Tests in the harness of 13a (`CliTest`):
`SetAdvertLocTakesEachPolicyAndSaves`, `SetAdvertLocWithAnUnknownPolicyAnswersErrorAndChangesNothing`,
`SetAdvertLocNeedsItsTrailingSpaceAndKeepsAdvertIntervalApart` in `test_cli_set.cpp`,
`GetAdvertLocShowsThePolicy` in `test_cli_get.cpp`. They run in the five `native_common_cli*`
environments (+4 cases each).
- `platformio.ini`: upstream shortened `test_ignore` to `test_kiss_modem`; the fork keeps its
long list and drops only `test_rak3401_board_startup`. The merge removed
`[env:native_rak3401_onboard_radio]`.
- `.github/workflows/run-unit-tests.yml`: the fork's `pio test` line without
`-e native_rak3401_onboard_radio` (27 environments).

Silent collisions, checked and fine:

- E2a (`VariantTarget.cpp`, `SENSORS_TARGET_GLOBALS`): the shared `NmeaGpsDriver gps_driver(Serial1);`
now picks up `GPS_BAUD_PROBE_LIST` through the constructor default of #3798. Station G2 and
G3 use the shared block and define the flag, so they get the probe list without a line of
their own. Measured on the built images: `NMEA_GPS_PROBE_BAUDS` is a symbol in
`Station_G2_repeater`, and the byte triple 9600, 115200, 38400 is in the firmware of
`Station_G2_repeater` and `Station_G3_ESP32_repeater`, not in `Heltec_v3_repeater`.
- `variants/promicro/target.cpp` (group B, own `target.cpp`): auto-merged to the plain
`NmeaGpsDriver gps_driver(Serial1);`; upstream dropped the local probe-list branch because
the driver reads the flag itself. `docs/refactoring/0011-variant-target.md` says so now.
- `EnvironmentSensorManager.cpp`: upstream removed the guard alert telemetry; the fork's
`GpsGuard`/GPS code from the 10.11. sync is not touched. `getAlertOffset`, `rej nofix`
appear nowhere else in the tree (grep over `*.cpp`, `*.h`, `*.ini`; `docs/cli_commands.md`
mentions both and was updated by upstream).

## Docs

`0013-cli-command-table.md`: `advert.loc` row in the set table, `advert.loc` in the key list of
the get section, test counts for `test_cli_set.cpp` (52) and `test_cli_get.cpp` (25).

## Checks

Native, the environments of `run-unit-tests.yml`, one by one with `pio test -e <env>`, exit
code 0 each.

| | Environments | Cases | Succeeded | Skipped | Failed |
|---|---|---|---|---|---|
| before the merge (5e32b39d) | 28 | 2447 | 2446 | 1 (`native_radio_chips`) | 0 |
| after the merge | 27 | 2456 | 2455 | 1 (`native_radio_chips`) | 0 |

Difference: the reverted rak13302 tests (4 cases in `native`, 7 in the removed environment)
and the 20 new `advert.loc` cases (4 in each of the five `native_common_cli*`).
`native` 143 to 139, `native_common_cli` 185 to 189, `_esp32` 185 to 189, `_espnow` 193 to
197, `_nrf52` 198 to 202, `_rs232` 192 to 196; all other environments unchanged.

Firmware: 19 environments, `SOURCE_DATE_EPOCH=1760000000`, merged tree. Not the 211 of
`sync-build-envs.txt` (see open points). Chosen for what the merge touches: E2a variants with
and without the probe list (Station G2 and G3, Heltec V3, V4, V4 R8, tracker V2, T096,
ProMicro), all three mDNS code paths (WiFi companions), CommonCLI on every platform (nRF52,
ESP32, RP2040).

| Env | RAM | Flash | Result |
|---|---|---|---|
| Station_G2_repeater | 74968 | 1218873 | builds |
| Station_G2_companion_radio_wifi | 184800 | 1153665 | builds |
| Station_G2_companion_radio_ble | 184420 | 1333341 | link error, flash too big (max 1310720) |
| Station_G3_ESP32_repeater | 74976 | 1220477 | builds |
| Station_G3_ESP32_companion_radio_ble | 184428 | 1335009 | link error, flash too big |
| Heltec_v3_repeater | 62768 | 1186005 | builds |
| heltec_v4_repeater | 62740 | 1184149 | builds |
| heltec_v4_companion_radio_wifi | 174492 | 1145681 | builds |
| heltec_v4_r8_repeater | 62656 | 1187681 | builds |
| heltec_tracker_v2_repeater | 74608 | 1237145 | builds |
| Heltec_t096_repeater | 35828 | 432632 | builds |
| RAK_4631_repeater | 37664 | 468524 | builds |
| RAK_4631_companion_radio_ble | 150160 | 492368 | builds |
| ProMicro_repeater | 34156 | 364304 | builds |
| ThinkNode_M1_companion_radio_ble | 151680 | 384564 | builds |
| t1000e_repeater | 33116 | 311128 | builds |
| t1000e_companion_radio_usb | 141396 | 321076 | builds |
| MeshTracker_X1_repeater | 33196 | 318608 | builds |
| PicoW_repeater | 85484 | 532216 | builds |

The two BLE companions that fail are not caused by this merge. The same two environments
built the same way overflow on `integration` 5e32b39d (`Station_G3_ESP32_companion_radio_ble`
1334945, `Station_G2_companion_radio_ble` 1333265) and `Station_G3_ESP32_companion_radio_ble`
on `upstream/dev` bb870313 (1327237) as well. The merge adds 64 bytes (G3) and 76 bytes (G2)
over `integration`. Caveat: the libdeps of these builds were seeded from existing
`.pio/libdeps` directories to stay under the PlatformIO registry limit (no integrity file),
so absolute sizes may differ from a fresh CI build. Whether the images overflow with freshly
resolved libraries is NOT VERIFIED. The fork premium over `upstream/dev` for
`Station_G3_ESP32_companion_radio_ble` is +7772 bytes, in the range of the 10.11. sync.

## Open points, NOT VERIFIED

- Not built: 192 of the 211 environments of `sync-build-envs.txt`, no size comparison against
`upstream/dev` except the one environment above.
- No board run, no image flashed: probe-list baud detection on Station G2/G3 with a Grove
GPS at 115200, the `time wait` guard status, the mDNS name on a device.
- No host test for `get/set advert.loc` outside the CLI harness, none for the GPS guard,
`NmeaGpsDriver` probe list or the MicroNMEA buffer tail (#3819).
25 changes: 14 additions & 11 deletions examples/companion_radio/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,27 +276,30 @@ void setup() {
#endif

#ifdef HAS_ESP_MDNS
String nodeName = the_mesh.getNodeName();
String sanitizedNodeName;
sanitizedNodeName.reserve(nodeName.length());
for (size_t i = 0; i < nodeName.length(); ++i) {
const char* nodeName = the_mesh.getNodeName();

// "meshcore_" prefix + sanitized node name, capped at 63 chars (max DNS label length)
char mdnsName[64];
const size_t prefixLen = snprintf(mdnsName, sizeof(mdnsName), "meshcore_");
size_t pos = prefixLen;
for (size_t i = 0; nodeName[i] != '\0' && pos < sizeof(mdnsName) - 1; ++i) {
const char c = nodeName[i];
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ||
(c >= '0' && c <= '9') || c == '-' || c == '_') {
sanitizedNodeName += c;
mdnsName[pos++] = c;
}
}
mdnsName[pos] = '\0';

String mdnsName = "meshcore_";
mdnsName += sanitizedNodeName;
if (!MDNS.begin(mdnsName.c_str())) {
if (!MDNS.begin(mdnsName)) {
WIFI_DEBUG_PRINTLN("mDNS failed to start!");
} else {
MDNS.addService("meshcore", "tcp", TCP_PORT);
MDNS.addServiceTxt("meshcore", "tcp", "node-name", the_mesh.getNodeName());
MDNS.addServiceTxt("meshcore", "tcp", "node-name", nodeName);
MDNS.addServiceTxt("meshcore", "tcp", "firmware-version", FIRMWARE_VERSION);
String protocol; protocol+=FIRMWARE_VER_CODE;
MDNS.addServiceTxt("meshcore", "tcp", "protocol-version", protocol.c_str());
char protocol[12];
snprintf(protocol, sizeof(protocol), "%d", (int)FIRMWARE_VER_CODE);
MDNS.addServiceTxt("meshcore", "tcp", "protocol-version", (const char*)protocol);
MDNS.addServiceTxt("meshcore", "tcp", "build-date", __DATE__);
MDNS.addServiceTxt("meshcore", "tcp", "build-time", __TIME__);
}
Expand Down
3 changes: 2 additions & 1 deletion examples/simple_repeater/MyMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,8 @@ void MyMesh::onPeerDataRecv(mesh::Packet *packet, uint8_t type, int sender_idx,
}
}

uint8_t temp[166];
// 5-byte datagram header + 3-byte reflected CLI prefix + 160-byte reply text + NUL
uint8_t temp[169];
char *command = (char *)&data[5];
char *reply = (char *)&temp[5];
if (is_retry) {
Expand Down
3 changes: 2 additions & 1 deletion examples/simple_room_server/MyMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ void MyMesh::onPeerDataRecv(mesh::Packet *packet, uint8_t type, int sender_idx,
mesh::Utils::sha256((uint8_t *)&ack_hash, 4, data, 5 + strlen((char *)&data[5]), client->id.pub_key,
PUB_KEY_SIZE);

uint8_t temp[166];
// 5-byte datagram header + 3-byte reflected CLI prefix + 160-byte reply text + NUL
uint8_t temp[169];
bool send_ack;
if (flags == TXT_TYPE_CLI_DATA || flags == TXT_TYPE_CLI_COMMAND) {
if (client->isAdmin()) {
Expand Down
3 changes: 2 additions & 1 deletion examples/simple_sensor/SensorMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,8 @@ void SensorMesh::onPeerDataRecv(mesh::Packet* packet, uint8_t type, int sender_i
// len can be > original length, but 'text' will be padded with zeroes
data[len] = 0; // need to make a C string again, with null terminator

uint8_t temp[166];
// 5-byte datagram header + 3-byte reflected CLI prefix + 160-byte reply text + NUL
uint8_t temp[169];
char *command = (char *) &data[5];
char *reply = (char *) &temp[5];
handleCommand(from, sender_timestamp, command, reply);
Expand Down
10 changes: 0 additions & 10 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ test_ignore =
test_common_cli
test_packet_parse
test_esp32_rtc_backup
test_rak3401_board_startup
build_src_filter =
-<*>
+<../src/Utils.cpp>
Expand Down Expand Up @@ -995,15 +994,6 @@ build_src_filter =
lib_deps =
google/googletest @ 1.17.0

[env:native_rak3401_onboard_radio]
; Board startup needs isolated GPIO and power-management mocks.
extends = env:native
test_build_src = no
test_filter = test_rak3401_*
test_ignore =
build_flags = -I test/test_rak3401_board_startup/mocks
${env:native.build_flags}

[env:native_kiss_modem]
platform = native
test_framework = googletest
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/BaseChatMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ void BaseChatMesh::onPeerDataRecv(mesh::Packet* packet, uint8_t type, int sender
onCommandDataRecv(from, packet, sender_timestamp, text); // let UI know
// NOTE: no ack expected for CLI_DATA replies
} else if (flags == TXT_TYPE_CLI_COMMAND) {
uint8_t temp[166];
// 5-byte datagram header + 3-byte reflected CLI prefix + 160-byte reply text + NUL
uint8_t temp[169];
char *command = (char *)&data[5];
char *reply = (char *)&temp[5];
*reply = 0;
Expand Down
Loading
Loading