Skip to content

Commit

Permalink
Resolve error with print info on machines without extruders
Browse files Browse the repository at this point in the history
  • Loading branch information
Patronics committed Feb 2, 2025
1 parent 485fbf2 commit c1a3d60
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Marlin/src/lcd/menu/menu_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@

STATIC_ITEM(MSG_INFO_PRINT_LONGEST, SS_FULL); // Longest job time:
STATIC_ITEM_F(nullptr, SS_FULL, duration_t(stats.longestPrint).toString(buffer)); // > 99y 364d 23h 59m 59s

#if HAS_EXTRUDERS
STATIC_ITEM(MSG_INFO_PRINT_FILAMENT, SS_FULL); // Extruded total:
sprintf_P(buffer, PSTR("%ld.%im")
, long(stats.filamentUsed / 1000)
, int16_t(stats.filamentUsed / 100) % 10
);
sprintf_P(buffer, PSTR("%ld.%im")
, long(stats.filamentUsed / 1000)
, int16_t(stats.filamentUsed / 100) % 10
);
STATIC_ITEM_F(nullptr, SS_FULL, buffer); // > 125m

#endif
#if SERVICE_INTERVAL_1 > 0 || SERVICE_INTERVAL_2 > 0 || SERVICE_INTERVAL_3 > 0
strcpy_P(buffer, GET_TEXT(MSG_SERVICE_IN));
#endif
Expand Down

0 comments on commit c1a3d60

Please sign in to comment.