From 67d7c6d72124cd00b0bf3cea81fbd53eb0338730 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Thu, 20 Jan 2022 13:20:33 +0100 Subject: [PATCH] Fix OTA with certs --- src/espasyncota.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/espasyncota.cpp b/src/espasyncota.cpp index 819b4fc..bf4de2c 100644 --- a/src/espasyncota.cpp +++ b/src/espasyncota.cpp @@ -293,7 +293,7 @@ void EspAsyncOta::otaTask() if (!m_cert_pem.empty()) { config.cert_pem = m_cert_pem.data(); - config.cert_len = m_cert_pem.size() - 1; + config.cert_len = m_cert_pem.size(); } config.skip_cert_common_name_check = false;