Skip to content

Commit 3469cb9

Browse files
committed
🔧 Fallback STRING_CONFIG_H_AUTHOR
1 parent 6c09b83 commit 3469cb9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Marlin/src/MarlinCore.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ void setup() {
12771277

12781278
// Identify myself as Marlin x.x.x
12791279
SERIAL_ECHOLNPGM("Marlin " SHORT_BUILD_VERSION);
1280-
#if defined(STRING_DISTRIBUTION_DATE) && defined(STRING_CONFIG_H_AUTHOR)
1280+
#ifdef STRING_DISTRIBUTION_DATE
12811281
SERIAL_ECHO_MSG(
12821282
" Last Updated: " STRING_DISTRIBUTION_DATE
12831283
" | Author: " STRING_CONFIG_H_AUTHOR

Marlin/src/feature/ethernet.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void MarlinEthernet::check() {
141141

142142
case CONNECTING:
143143
telnetClient.println("Marlin " SHORT_BUILD_VERSION);
144-
#if defined(STRING_DISTRIBUTION_DATE) && defined(STRING_CONFIG_H_AUTHOR)
144+
#ifdef STRING_DISTRIBUTION_DATE
145145
telnetClient.println(
146146
" Last Updated: " STRING_DISTRIBUTION_DATE
147147
" | Author: " STRING_CONFIG_H_AUTHOR

Marlin/src/inc/Conditionals_LCD.h

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
* Conditionals that need to be set before Configuration_adv.h or pins.h
2727
*/
2828

29+
#ifndef STRING_CONFIG_H_AUTHOR
30+
#define STRING_CONFIG_H_AUTHOR "(anonymous)"
31+
#endif
32+
2933
/**
3034
* Extruders have some combination of stepper motors and hotends
3135
* so we separate these concepts into the defines:

0 commit comments

Comments
 (0)