PFW-1362 Fsensor status is not required for SpoolJoin
This commit is contained in:
parent
428f4a87ed
commit
7c95f87867
|
|
@ -1,6 +1,5 @@
|
|||
#include "SpoolJoin.h"
|
||||
#include "eeprom.h"
|
||||
#include "Filament_sensor.h"
|
||||
|
||||
namespace SpoolJoin {
|
||||
|
||||
|
|
@ -42,12 +41,7 @@ void SpoolJoin::toggleSpoolJoin()
|
|||
|
||||
uint8_t SpoolJoin::isSpoolJoinEnabled()
|
||||
{
|
||||
if(eeprom_read_byte((uint8_t*)EEPROM_AUTO_DEPLETE) == (uint8_t)EEPROM::Enabled
|
||||
#ifdef FILAMENT_SENSOR
|
||||
&& fsensor.isReady()
|
||||
#endif
|
||||
)
|
||||
{
|
||||
if(eeprom_read_byte((uint8_t*)EEPROM_AUTO_DEPLETE) == (uint8_t)EEPROM::Enabled) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue