From 09c09e339096c8bf3ceadad9f610e3e0ed37bd10 Mon Sep 17 00:00:00 2001 From: fabik111 Date: Mon, 20 Jan 2025 17:46:07 +0100 Subject: [PATCH] standardize the return fw version value --- libraries/WiFi/src/WiFi.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/WiFi/src/WiFi.cpp b/libraries/WiFi/src/WiFi.cpp index 6ad89d619..ed9b43c18 100644 --- a/libraries/WiFi/src/WiFi.cpp +++ b/libraries/WiFi/src/WiFi.cpp @@ -385,9 +385,13 @@ const char* arduino::WiFiClass::firmwareVersion() { } if (firmware_available) { - return WHD_VERSION; + const char* whd_version = WHD_VERSION; + if (whd_version[0] == 'v') { + return ++whd_version; + } + return whd_version; } else { - return "v0.0.0"; + return "0.0.0"; } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy