Remaining Time for FTDI EVE, bp for ExtUI (#20549)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
LinFor
2020-12-24 01:37:17 +03:00
committed by GitHub
parent 59de35e749
commit 2d88a2cfb7
7 changed files with 156 additions and 85 deletions

View File

@@ -43,6 +43,7 @@
****************************************************************************/
#include "../../inc/MarlinConfig.h"
#include "../marlinui.h"
namespace ExtUI {
@@ -129,9 +130,19 @@ namespace ExtUI {
float getTravelAcceleration_mm_s2();
float getFeedrate_percent();
int16_t getFlowPercentage(const extruder_t);
uint8_t getProgress_percent();
inline uint8_t getProgress_percent() { return ui.get_progress_percent(); }
#if HAS_PRINT_PROGRESS_PERMYRIAD
inline uint16_t getProgress_permyriad() { return ui.get_progress_permyriad(); }
#endif
uint32_t getProgress_seconds_elapsed();
#if ENABLED(SHOW_REMAINING_TIME)
inline uint32_t getProgress_seconds_remaining() { return ui.get_remaining_time(); }
#endif
#if HAS_LEVELING
bool getLevelingActive();
void setLevelingActive(const bool);