Move some strings to flash

This commit is contained in:
2018-10-18 21:12:26 +03:00
committed by GitHub
parent 222b92d536
commit 02af69ba83

View File

@@ -477,7 +477,7 @@ void onInitialStateInitLAN() {
#if defined(__AVR__) || defined(__SAM3X8E__)||defined(ARDUINO_ARCH_STM32F1)
#ifdef W5500_CS_PIN
Ethernet.w5500_cspin = W5500_CS_PIN;
debugSerial<<"Use W5500 pin: ";
debugSerial<<F("Use W5500 pin: ");
debugSerial<<(Ethernet.w5500_cspin);
#endif
IPAddress ip, dns, gw, mask;
@@ -553,7 +553,7 @@ void softRebootFunc(){
void resetHard() {
#ifdef RESET_PIN
debugSerial<<"Reset Arduino with digital pin ";
debugSerial<<F("Reset Arduino with digital pin ");
debugSerial<<QUOTE(RESET_PIN);
delay(500);
pinMode(RESET_PIN, OUTPUT);
@@ -1182,7 +1182,7 @@ void printFirmwareVersionAndBuildOptions() {
#endif
#ifdef RESET_PIN
debugSerial<<"\n(+)HARDRESET on pin="<<QUOTE(RESET_PIN);
debugSerial<<F("\n(+)HARDRESET on pin=")<<QUOTE(RESET_PIN);
#else
debugSerial<<F("\n(-)HARDRESET, using soft");
#endif