Fix AutoLoad filament menu not shown when FSensor is [Off] (#4072)

Fix AutoLoad filament menu not shown when FSensor if [Off]
This commit is contained in:
3d-gussner 2023-03-10 14:23:56 +01:00 committed by GitHub
parent ce78ac19ff
commit 04d440a9c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5428,7 +5428,7 @@ static void lcd_main_menu()
#endif //MMU_HAS_CUTTER
} else {
#ifdef FILAMENT_SENSOR
if (fsensor.getAutoLoadEnabled()) {
if (fsensor.isEnabled() && fsensor.getAutoLoadEnabled()) {
MENU_ITEM_SUBMENU_P(_i("AutoLoad filament"), lcd_menu_AutoLoadFilament);////MSG_AUTOLOAD_FILAMENT c=18
}
else