Skip to content

Commit 5527364

Browse files
committed
IDF v5.5.4; optimized compile
1 parent 1a5f2fa commit 5527364

27 files changed

Lines changed: 35 additions & 27 deletions

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.16)
44

5-
set(PROJECT_VER "2.4.3")
5+
set(PROJECT_VER "2.4.4")
66
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
77
project(esp32_nat_router)
88

components/cmd_router/cmd_router.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ static int show(int argc, char **argv)
14011401
} else {
14021402
printf(" Static IP: <not configured>\n");
14031403
}
1404-
printf(" Hostname: %s\n", (hostname && hostname[0]) ? hostname : "(default)");
1404+
printf(" Hostname: %s\n", hostname);
14051405

14061406
printf("\nAP Settings:\n");
14071407
printf(" SSID: %s\n", ap_ssid != NULL ? ap_ssid : "<undef>");

components/mqtt_ha/mqtt_ha.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ static void publish_state(void *arg)
438438
char uplink_ssid[33] = "";
439439
if (esp_wifi_sta_get_ap_info(&ap_info) == ESP_OK) {
440440
rssi = ap_info.rssi;
441-
strncpy(uplink_ssid, (const char *)ap_info.ssid, sizeof(uplink_ssid) - 1);
441+
strncpy(uplink_ssid, (const char *)ap_info.ssid, sizeof(uplink_ssid));
442442
}
443443

444444
/* Router-level state */

components/remote_console/remote_console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ esp_err_t remote_console_get_status(remote_console_status_t *status) {
419419
status->failed_auths = rc_state.failed_auths;
420420

421421
if (rc_state.state == RC_STATE_ACTIVE) {
422-
strncpy(status->client_ip, rc_state.client_ip, sizeof(status->client_ip) - 1);
422+
strncpy(status->client_ip, rc_state.client_ip, sizeof(status->client_ip));
423423
int64_t now = esp_timer_get_time();
424424
status->session_duration_sec = (uint32_t)((now - rc_state.session_start_time) / 1000000);
425425
status->idle_sec = (uint32_t)((now - rc_state.last_activity_time) / 1000000);

components/syslog/syslog_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static int syslog_vprintf(const char *fmt, va_list args)
278278
snprintf(timestamp, sizeof(timestamp), "Jan 1 00:00:00");
279279
}
280280

281-
const char *host = (hostname && hostname[0]) ? hostname : "ESP32";
281+
const char *host = hostname;
282282
int severity = esp_level_to_syslog(level_char);
283283
int priority = SYSLOG_FACILITY * 8 + severity;
284284

firmware_esp32/bootloader.bin

0 Bytes
Binary file not shown.

firmware_esp32/build_info.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ESP32 NAT Router Build Information
22
=================================
33
Target: ESP32 (Original) (esp32)
4-
Build Time: 2026-03-24 15:58:09
5-
Git Hash: 12312b2
4+
Build Time: 2026-03-27 23:54:07
5+
Git Hash: 1a5f2fa
66
Binary Files: 4
77
Build Directory: build
90.3 KB
Binary file not shown.

firmware_esp32c3/bootloader.bin

0 Bytes
Binary file not shown.

firmware_esp32c3/build_info.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ESP32 NAT Router Build Information
22
=================================
33
Target: ESP32-C3 (esp32c3)
4-
Build Time: 2026-03-24 16:14:36
5-
Git Hash: 12312b2
4+
Build Time: 2026-03-28 00:10:35
5+
Git Hash: 1a5f2fa
66
Binary Files: 4
77
Build Directory: build

0 commit comments

Comments
 (0)