fix thermalManager

Signed-off-by: Sergey Terentiev <sergey@terentiev.me>
This commit is contained in:
Sergey Terentiev
2022-07-18 11:54:39 +03:00
parent dd1b8567b1
commit c7377dfd13
2 changed files with 2 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ void mks_wifi_start_file_upload(ESP_PROTOC_FRAME *packet){
thermalManager.setTargetBed(0);
thermalManager.setTargetHotend(0,0);
thermalManager.manage_heater();
thermalManager.task();
//Установить имя файла. Смещение на 3 байта, чтобы добавить путь к диску
file_name[0]='0';
file_name[1]=':';

View File

@@ -19,7 +19,7 @@ void mks_update_status(char *filename,uint32_t current_filesize, uint32_t file_s
thermalManager.setTargetBed(0);
thermalManager.setTargetHotend(0,0);
thermalManager.manage_heater();
thermalManager.task();
OUT_WRITE(FAN1_PIN,HIGH);
//При расчете процентов размер файла превышает максимум для uint32_t