PFW-1362 Fsensor is not required for Spooljoin

Since the Fsensor is not required to use SpoolJoin,
it makes little sense to me that we need the fsensor
to "enable" SpoolJoin
This commit is contained in:
Guðni Már Gilbert 2022-09-10 10:53:21 +00:00 committed by D.R.racer
parent d51026d8f7
commit 166ecbc7d8
1 changed files with 1 additions and 9 deletions

View File

@ -4295,15 +4295,7 @@ static void settingsSpoolJoin()
{
if (MMU2::mmu2.Enabled())
{
#ifdef FILAMENT_SENSOR
if (fsensor.isError()) {
MENU_ITEM_TOGGLE_P(_T(MSG_AUTO_DEPLETE), _T(MSG_NA), fsensor_reinit);
}
else
#endif //FILAMENT_SENSOR
{
MENU_ITEM_TOGGLE_P(_T(MSG_AUTO_DEPLETE), SpoolJoin::spooljoin.isSpoolJoinEnabled() ? _T(MSG_ON) : _T(MSG_OFF), SpoolJoin::spooljoin.toggleSpoolJoin);
}
MENU_ITEM_TOGGLE_P(_T(MSG_AUTO_DEPLETE), SpoolJoin::spooljoin.isSpoolJoinEnabled() ? _T(MSG_ON) : _T(MSG_OFF), SpoolJoin::spooljoin.toggleSpoolJoin);
}
}