Skip to content

Commit 4b50813

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into dev
2 parents 65be15e + 3aa5778 commit 4b50813

File tree

28 files changed

+85
-114
lines changed

28 files changed

+85
-114
lines changed

examples/companion_radio/MyMesh.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
#define FIRMWARE_VER_CODE 7
99

1010
#ifndef FIRMWARE_BUILD_DATE
11-
#define FIRMWARE_BUILD_DATE "24 Jul 2025"
11+
#define FIRMWARE_BUILD_DATE "31 Aug 2025"
1212
#endif
1313

1414
#ifndef FIRMWARE_VERSION
15-
#define FIRMWARE_VERSION "v1.7.4"
15+
#define FIRMWARE_VERSION "v1.8.0"
1616
#endif
1717

1818
#if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)

examples/companion_radio/ui-new/UITask.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,22 @@ void UITask::loop() {
551551
if (millis() > next_batt_chck) {
552552
uint16_t milliVolts = getBattMilliVolts();
553553
if (milliVolts > 0 && milliVolts < AUTO_SHUTDOWN_MILLIVOLTS) {
554+
555+
// show low battery shutdown alert
556+
// we should only do this for eink displays, which will persist after power loss
557+
#ifdef THINKNODE_M1
558+
if (_display != NULL) {
559+
_display->startFrame();
560+
_display->setTextSize(2);
561+
_display->setColor(DisplayDriver::RED);
562+
_display->drawTextCentered(_display->width() / 2, 20, "Low Battery.");
563+
_display->drawTextCentered(_display->width() / 2, 40, "Shutting Down!");
564+
_display->endFrame();
565+
}
566+
#endif
567+
554568
shutdown();
569+
555570
}
556571
next_batt_chck = millis() + 8000;
557572
}

examples/simple_repeater/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
/* ------------------------------ Config -------------------------------- */
2323

2424
#ifndef FIRMWARE_BUILD_DATE
25-
#define FIRMWARE_BUILD_DATE "24 Jul 2025"
25+
#define FIRMWARE_BUILD_DATE "31 Aug 2025"
2626
#endif
2727

2828
#ifndef FIRMWARE_VERSION
29-
#define FIRMWARE_VERSION "v1.7.4"
29+
#define FIRMWARE_VERSION "v1.8.0"
3030
#endif
3131

3232
#ifndef LORA_FREQ

examples/simple_room_server/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
/* ------------------------------ Config -------------------------------- */
2323

2424
#ifndef FIRMWARE_BUILD_DATE
25-
#define FIRMWARE_BUILD_DATE "24 Jul 2025"
25+
#define FIRMWARE_BUILD_DATE "31 Aug 2025"
2626
#endif
2727

2828
#ifndef FIRMWARE_VERSION
29-
#define FIRMWARE_VERSION "v1.7.4"
29+
#define FIRMWARE_VERSION "v1.8.0"
3030
#endif
3131

3232
#ifndef LORA_FREQ

examples/simple_sensor/SensorMesh.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ struct ContactInfo {
4949
};
5050

5151
#ifndef FIRMWARE_BUILD_DATE
52-
#define FIRMWARE_BUILD_DATE "24 Jul 2025"
52+
#define FIRMWARE_BUILD_DATE "31 Aug 2025"
5353
#endif
5454

5555
#ifndef FIRMWARE_VERSION
56-
#define FIRMWARE_VERSION "v1.7.4"
56+
#define FIRMWARE_VERSION "v1.8.0"
5757
#endif
5858

5959
#define FIRMWARE_ROLE "sensor"

library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MeshCore",
3-
"version" : "1.7.4",
3+
"version" : "1.8.0",
44
"dependencies": {
55
"SPI": "*",
66
"Wire": "*",
@@ -13,4 +13,4 @@
1313
"build": {
1414
"extraScript": "build_as_lib.py"
1515
}
16-
}
16+
}

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ lib_deps =
6868
; esp32c6 uses arduino framework 3.x
6969
[esp32c6_base]
7070
extends = esp32_base
71-
platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21/platform-espressif32.zip
71+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.12/platform-espressif32.zip
7272

7373
; ----------------- NRF52 ---------------------
7474

src/helpers/CommonCLI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
268268
} else if (memcmp(config, "agc.reset.interval ", 19) == 0) {
269269
_prefs->agc_reset_interval = atoi(&config[19]) / 4;
270270
savePrefs();
271-
strcpy(reply, "OK");
271+
sprintf(reply, "OK - interval rounded to %d", ((uint32_t) _prefs->agc_reset_interval) * 4);
272272
} else if (memcmp(config, "multi.acks ", 11) == 0) {
273273
_prefs->multi_acks = atoi(&config[11]);
274274
savePrefs();

src/helpers/nrf52/ThinkNodeM1Board.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ class ThinkNodeM1Board : public mesh::MainBoard {
5757
}
5858

5959
void powerOff() override {
60+
61+
// turn off all leds, sd_power_system_off will not do this for us
62+
#ifdef P_LORA_TX_LED
63+
digitalWrite(P_LORA_TX_LED, LOW);
64+
#endif
65+
66+
// power off board
6067
sd_power_system_off();
68+
6169
}
6270
};

variants/generic_espnow/platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ build_src_filter = ${esp32_base.build_src_filter}
2626
extends = Generic_ESPNOW
2727
build_flags =
2828
${Generic_ESPNOW.build_flags}
29-
-D MAX_CONTACTS=100
29+
-D MAX_CONTACTS=300
3030
-D MAX_GROUP_CHANNELS=1
3131
build_src_filter = ${Generic_ESPNOW.build_src_filter}
3232
+<../examples/simple_secure_chat/main.cpp>
@@ -54,7 +54,7 @@ lib_deps =
5454
extends = Generic_ESPNOW
5555
build_flags =
5656
${Generic_ESPNOW.build_flags}
57-
-D MAX_CONTACTS=100
57+
-D MAX_CONTACTS=300
5858
-D MAX_GROUP_CHANNELS=8
5959
; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
6060
; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1

0 commit comments

Comments
 (0)