|
@ -5,6 +5,8 @@ |
|
|
#include "../../lcd/tft/tft.h" |
|
|
#include "../../lcd/tft/tft.h" |
|
|
#include "../../lcd/tft/tft_color.h" |
|
|
#include "../../lcd/tft/tft_color.h" |
|
|
#include "../../lcd/ultralcd.h" |
|
|
#include "../../lcd/ultralcd.h" |
|
|
|
|
|
#include "../temperature.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern TFT tft; |
|
|
extern TFT tft; |
|
|
char str[100]; |
|
|
char str[100]; |
|
@ -14,6 +16,11 @@ void mks_update_status(char *filename,uint32_t current_filesize, uint32_t file_s |
|
|
static uint32_t last_value = 200; |
|
|
static uint32_t last_value = 200; |
|
|
uint32_t percent_done; |
|
|
uint32_t percent_done; |
|
|
uint16_t width; |
|
|
uint16_t width; |
|
|
|
|
|
|
|
|
|
|
|
thermalManager.setTargetBed(0); |
|
|
|
|
|
thermalManager.setTargetHotend(0,0); |
|
|
|
|
|
OUT_WRITE(HEATER_1_PIN,HIGH); |
|
|
|
|
|
thermalManager.manage_heater(); |
|
|
|
|
|
|
|
|
//При расчете процентов размер файла превышает максимум для uint32_t
|
|
|
//При расчете процентов размер файла превышает максимум для uint32_t
|
|
|
if(current_filesize >= (UINT32_MAX/100) ){ |
|
|
if(current_filesize >= (UINT32_MAX/100) ){ |
|
@ -40,6 +47,7 @@ void mks_update_status(char *filename,uint32_t current_filesize, uint32_t file_s |
|
|
|
|
|
|
|
|
tft.queue.sync(); |
|
|
tft.queue.sync(); |
|
|
last_value = percent_done; |
|
|
last_value = percent_done; |
|
|
|
|
|
ui.update(); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|