void ConfigSD_PrintSettings(bool forReplay) { // Always have this function, even with SD_SETTINGS disabled, the current values will be shown #if HAS(POWER_CONSUMPTION_SENSOR) if (!forReplay) { ECHO_LM(INFO, "Watt/h consumed:"); } ECHO_LVM(INFO, power_consumption_hour," Wh"); #endif if (!forReplay) { ECHO_LM(INFO, "Power on time:"); } char time[30]; unsigned int day = printer_usage_seconds / 60 / 60 / 24, hours = (printer_usage_seconds / 60 / 60) % 24, minutes = (printer_usage_seconds / 60) % 60; sprintf_P(time, PSTR(" %i " MSG_END_DAY " %i " MSG_END_HOUR " %i " MSG_END_MINUTE), day, hours, minutes); ECHO_LT(INFO, time); if (!forReplay) { ECHO_LM(INFO, "Filament printed:"); } char lung[30]; unsigned int kmeter = (long)printer_usage_filament / 1000 / 1000, meter = ((long)printer_usage_filament / 1000) % 1000, centimeter = ((long)printer_usage_filament / 10) % 100, millimeter = ((long)printer_usage_filament) % 10; sprintf_P(lung, PSTR(" %i Km %i m %i cm %i mm"), kmeter, meter, centimeter, millimeter); ECHO_LT(INFO, lung); }
void ConfigSD_PrintSettings(bool forReplay) { // Always have this function, even with SD_SETTINGS disabled, the current values will be shown #if HAS(POWER_CONSUMPTION_SENSOR) CONFIG_ECHO_START("Watt/h consumed:"); ECHO_LVM(INFO, power_consumption_hour," Wh"); #endif print_job_counter.showStats(); }