diff --git a/Firmware/Marlin.h b/Firmware/Marlin.h index 17fce271..aa057bc5 100755 --- a/Firmware/Marlin.h +++ b/Firmware/Marlin.h @@ -352,7 +352,7 @@ extern bool mesh_bed_run_from_menu; extern bool sortAlpha; -extern char dir_names[3][9]; +extern char dir_names[MAX_DIR_DEPTH][9]; extern int8_t lcd_change_fil_state; // save/restore printing diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 777a05ff..4e0511c1 100755 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -228,7 +228,7 @@ bool fan_state[2]; int fan_edge_counter[2]; int fan_speed[2]; -char dir_names[3][9]; +char dir_names[MAX_DIR_DEPTH][9]; bool sortAlpha = false;