diff --git a/zh_espnow.c b/zh_espnow.c index 5e5fc16..e8b1b7b 100755 --- a/zh_espnow.c +++ b/zh_espnow.c @@ -530,8 +530,8 @@ uint8_t zh_espnow_get_attempts(void) esp_err_t zh_espnow_set_attempts(uint8_t attempts) { - ZH_ESPNOW_CHECK(_is_initialized == true, ESP_ERR_INVALID_STATE, "ESP-NOW is not initialized."); - ZH_ESPNOW_CHECK(attempts > 0, ESP_ERR_INVALID_ARG, "Invalid number of attempts."); + ZH_ESPNOW_CHECK(_is_initialized == true, ESP_ERR_INVALID_STATE, "Number of attempts set failed. ESP-NOW is not initialized."); + ZH_ESPNOW_CHECK(attempts > 0, ESP_ERR_INVALID_ARG, "Number of attempts set failed. Invalid number."); _init_config.attempts = attempts; ZH_ESPNOW_LOGI("Number of attempts set successfully."); return ESP_OK;