File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -557,24 +557,29 @@ String EspClass::getSketchMD5()
557
557
return result;
558
558
}
559
559
560
+ static const char arduino_esp8266_git_ver [] PROGMEM = STR(ARDUINO_ESP8266_GIT_VER);
561
+ #if LWIP_VERSION_MAJOR != 1
562
+ static const char lwip2_version [] PROGMEM = " /lwIP:" STR(LWIP_VERSION_MAJOR) " ." STR(LWIP_VERSION_MINOR) " ." STR(LWIP_VERSION_REVISION);
563
+ #endif
564
+
560
565
String EspClass::getFullVersion ()
561
566
{
562
- return String (" Boot:" ) + system_get_boot_version ()
563
- + " /SDK:" + system_get_sdk_version ()
564
- + " /Core:" STR (ARDUINO_ESP8266_GIT_VER )
567
+ return String (F ( " Boot:" ) ) + system_get_boot_version ()
568
+ + F ( " /SDK:" ) + system_get_sdk_version ()
569
+ + F ( " /Core:" ) + FPSTR (arduino_esp8266_git_ver )
565
570
#if LWIP_VERSION_MAJOR == 1
566
- + " /lwIP:" + String (LWIP_VERSION_MAJOR) + " ." + String (LWIP_VERSION_MINOR) + " ." + String (LWIP_VERSION_REVISION)
571
+ + F ( " /lwIP:" ) + String (LWIP_VERSION_MAJOR) + " ." + String (LWIP_VERSION_MINOR) + " ." + String (LWIP_VERSION_REVISION)
567
572
#else
568
- + " /lwIP: " STR (LWIP_VERSION_MAJOR) + " . " STR (LWIP_VERSION_MINOR) + " . " + STR (LWIP_VERSION_REVISION )
573
+ + FPSTR (lwip2_version )
569
574
#endif
570
575
#if LWIP_VERSION_IS_DEVELOPMENT
571
- + " -dev"
576
+ + F ( " -dev" )
572
577
#endif
573
578
#if LWIP_VERSION_IS_RC
574
- + " rc" + String (LWIP_VERSION_RC)
579
+ + F ( " rc" ) + String (LWIP_VERSION_RC)
575
580
#endif
576
581
#ifdef LWIP_HASH_STR
577
- + " (" LWIP_HASH_STR " )"
582
+ + " (" + F ( LWIP_HASH_STR) + " )"
578
583
#endif
579
584
;
580
585
}
You can’t perform that action at this time.
0 commit comments