-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] make the date/time stamp of the 'compile' available to display. #27589
Comments
Is there a reason why the compile datetimestamp from Serial Report isn't sufficient here? |
this is almost trivial When BUILDDATE is defined add a submenu "Build Datetime" to the About Printer menu diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h
index 564f44df60..f992dd7884 100644
--- a/Marlin/Configuration_adv.h
+++ b/Marlin/Configuration_adv.h
@@ -1546,8 +1546,9 @@
#endif
// Include a page of printer information in the LCD Main Menu
- //#define LCD_INFO_MENU
+ #define LCD_INFO_MENU
#if ENABLED(LCD_INFO_MENU)
+ #define BUILDDATE
//#define LCD_PRINTER_INFO_IS_BOOTSCREEN // Show bootscreen(s) instead of Printer Info pages
#endif
diff --git a/Marlin/src/lcd/menu/menu_info.cpp b/Marlin/src/lcd/menu/menu_info.cpp
index 2db0caa805..81ca11beca 100644
--- a/Marlin/src/lcd/menu/menu_info.cpp
+++ b/Marlin/src/lcd/menu/menu_info.cpp
@@ -263,6 +263,18 @@ void menu_info_board() {
#endif
+//
+// "Build Date" submenu
+//
+#if ENABLED(BUILDDATE)
+ void menu_info_build() {
+ if (ui.use_click()) return ui.go_back();
+ START_SCREEN();
+ STATIC_ITEM_F(F(__DATE__ " " __TIME__));
+ END_SCREEN();
+ }
+#endif
+
//
// "About Printer" submenu
//
@@ -306,6 +318,11 @@ void menu_info() {
}
#endif
+ #if ENABLED(BUILDDATE)
+ SUBMENU(MSG_INFO_BUILD, menu_info_build);
+ #endif
+
+
END_MENU();
}
Everything needs a define, so it can be removed entirely from the code. |
This is awesome. |
based on bugfix 2.1.x |
this is for marlin menus, to update the touch interface would require you to update the btt tft firmware |
I have created a PR to add this |
I figured out where it has to go. |
Update: |
Is your feature request related to a problem? Please describe.
no, not related to a problem.
Are you looking for hardware support?
n/a
Describe the feature you want
It would be nice to have the date/time stamp of the last compile (from the firmware.bin file) available to display on the printers screen when running the firmware.
When testing some features in Marlin, I may end up with several compilations in a short period of time.
To have the date/time stamp available on the display helps to keep the different versions apart.
It would be a 'nice to have'.
Additional context
I'm not thinking of a new '#define". More of an internal variable that can be displayed on the printers screen
The text was updated successfully, but these errors were encountered: