Skip to content

Commit

Permalink
CPCd Release: 4.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
silabsbot committed Sep 19, 2024
1 parent 9720f30 commit c704b40
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.10)

project(cpc-daemon
VERSION "4.5.1.0"
VERSION "4.5.2.0"
LANGUAGES C)

option(BUILD_SHARED_LIBS "Build shared libraries" ON)
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
cpc-daemon (4.5.2) unstable; urgency=medium

* See https://github.com/SiliconLabs/cpc-daemon/releases/tag/v4.5.2

-- Alexandre Autotte <[email protected]> Thu, 5 Sep 2024 8:53:00 -0400

cpc-daemon (4.5.1) unstable; urgency=medium

* See https://github.com/SiliconLabs/cpc-daemon/releases/tag/v4.5.1
Expand Down
4 changes: 2 additions & 2 deletions modes/firmware_update.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ void run_firmware_update(void)
status = transfer_firmware();

if (status == SL_STATUS_OK) {
PRINT_INFO("Firmware upgrade successful");
PRINT_INFO("Firmware transferred successfully");
if (config.restart_cpcd) {
config_restart_cpcd_without_fw_update_args();
} else {
config_exit_cpcd(EXIT_SUCCESS);
}
} else {
PRINT_INFO("Firmware upgrade failed");
PRINT_INFO("Firmware transfer failed");
config_exit_cpcd(EXIT_FAILURE);
}
}
Expand Down
4 changes: 3 additions & 1 deletion server_core/server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ sl_status_t server_push_data_to_endpoint(uint8_t endpoint_number, const uint8_t*

// Close unresponsive sockets
if (wc < 0 && (errno == EAGAIN || errno == EPIPE || errno == ECONNRESET || errno == EWOULDBLOCK)) {
WARN("Unresponsive data socket on ep#%d, closing", endpoint_number);
WARN("Unresponsive data socket on ep#%d", endpoint_number);

// nb_clients helps to keep track of the number of clients the data have
// been sent to. The use case here is to return an error *only* if there
Expand All @@ -1939,6 +1939,8 @@ sl_status_t server_push_data_to_endpoint(uint8_t endpoint_number, const uint8_t*
}
}

WARN("Closing socket: ep#%d", endpoint_number);

// Unregister the data socket file descriptor from epoll watch list
epoll_unregister(&item->data_socket_epoll_private_data);

Expand Down

0 comments on commit c704b40

Please sign in to comment.