diff --git a/main/espnowfunctions.cpp b/main/espnowfunctions.cpp index 993af0f..48940f0 100644 --- a/main/espnowfunctions.cpp +++ b/main/espnowfunctions.cpp @@ -302,7 +302,7 @@ esp_err_t send_espnow_message(std::string_view message) else { const auto timeAfter = espchrono::millis_clock::now(); - ESP_LOGI(TAG, "Successfully executed esp_now_send(): Took %lldms", std::chrono::milliseconds{timeAfter-timeBefore}.count()); + ESP_LOGI(TAG, "Successfully executed esp_now_send(): Took %lldms", std::chrono::floor(timeAfter-timeBefore).count()); } } return ESP_OK;