mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
Move some strings to flash
This commit is contained in:
@@ -477,7 +477,7 @@ void onInitialStateInitLAN() {
|
|||||||
#if defined(__AVR__) || defined(__SAM3X8E__)||defined(ARDUINO_ARCH_STM32F1)
|
#if defined(__AVR__) || defined(__SAM3X8E__)||defined(ARDUINO_ARCH_STM32F1)
|
||||||
#ifdef W5500_CS_PIN
|
#ifdef W5500_CS_PIN
|
||||||
Ethernet.w5500_cspin = W5500_CS_PIN;
|
Ethernet.w5500_cspin = W5500_CS_PIN;
|
||||||
debugSerial<<"Use W5500 pin: ";
|
debugSerial<<F("Use W5500 pin: ");
|
||||||
debugSerial<<(Ethernet.w5500_cspin);
|
debugSerial<<(Ethernet.w5500_cspin);
|
||||||
#endif
|
#endif
|
||||||
IPAddress ip, dns, gw, mask;
|
IPAddress ip, dns, gw, mask;
|
||||||
@@ -553,7 +553,7 @@ void softRebootFunc(){
|
|||||||
|
|
||||||
void resetHard() {
|
void resetHard() {
|
||||||
#ifdef RESET_PIN
|
#ifdef RESET_PIN
|
||||||
debugSerial<<"Reset Arduino with digital pin ";
|
debugSerial<<F("Reset Arduino with digital pin ");
|
||||||
debugSerial<<QUOTE(RESET_PIN);
|
debugSerial<<QUOTE(RESET_PIN);
|
||||||
delay(500);
|
delay(500);
|
||||||
pinMode(RESET_PIN, OUTPUT);
|
pinMode(RESET_PIN, OUTPUT);
|
||||||
@@ -1182,7 +1182,7 @@ void printFirmwareVersionAndBuildOptions() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RESET_PIN
|
#ifdef RESET_PIN
|
||||||
debugSerial<<"\n(+)HARDRESET on pin="<<QUOTE(RESET_PIN);
|
debugSerial<<F("\n(+)HARDRESET on pin=")<<QUOTE(RESET_PIN);
|
||||||
#else
|
#else
|
||||||
debugSerial<<F("\n(-)HARDRESET, using soft");
|
debugSerial<<F("\n(-)HARDRESET, using soft");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user