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 "SpoolJoin.h"
|
||||||
#include "eeprom.h"
|
#include "eeprom.h"
|
||||||
#include "Filament_sensor.h"
|
|
||||||
|
|
||||||
namespace SpoolJoin {
|
namespace SpoolJoin {
|
||||||
|
|
||||||
|
|
@ -42,12 +41,7 @@ void SpoolJoin::toggleSpoolJoin()
|
||||||
|
|
||||||
uint8_t SpoolJoin::isSpoolJoinEnabled()
|
uint8_t SpoolJoin::isSpoolJoinEnabled()
|
||||||
{
|
{
|
||||||
if(eeprom_read_byte((uint8_t*)EEPROM_AUTO_DEPLETE) == (uint8_t)EEPROM::Enabled
|
if(eeprom_read_byte((uint8_t*)EEPROM_AUTO_DEPLETE) == (uint8_t)EEPROM::Enabled) {
|
||||||
#ifdef FILAMENT_SENSOR
|
|
||||||
&& fsensor.isReady()
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue