Refuse to start a SD print until filament loading is complete

Do not blidnly clear the loading_flag, check for it!

Just disallowing the SD menu while loading is being performed is not
sufficient, since the menu can be entered also by inserting card while
loading is taking place.

This is also nicer in behavior, as we allow to navigate the SD card
while loading.
This commit is contained in:
Yuri D'Elia 2022-08-20 16:09:10 +02:00 committed by Guðni Már Gilbert
parent e3fd6a4902
commit 05b536947b
1 changed files with 2 additions and 1 deletions

View File

@ -6917,7 +6917,8 @@ static bool check_file(const char* filename) {
static void menu_action_sdfile(const char* filename)
{
loading_flag = false;
if(loading_flag) return;
char cmd[30];
char* c;
bool result = true;