[nextion] Use std::string::starts_with for HTTPS URL check (#16090)

This commit is contained in:
Jonathan Swoboda
2026-04-28 16:47:20 -04:00
committed by GitHub
parent 70503442f4
commit 16cf4fb5e8
@@ -331,7 +331,7 @@ bool Nextion::upload_tft(uint32_t baud_rate, bool exit_reparse) {
#ifdef USE_ESP8266
WiFiClient *Nextion::get_wifi_client_() {
if (this->tft_url_.compare(0, 6, "https:") == 0) {
if (this->tft_url_.starts_with("https:")) {
if (this->wifi_client_secure_ == nullptr) {
// NOLINTNEXTLINE(cppcoreguidelines-owning-memory)
this->wifi_client_secure_ = new BearSSL::WiFiClientSecure();