Browse Source

PFW-1362 Fsensor status is not required for SpoolJoin

Guðni Már Gilbert 2 years ago
parent
commit
7c95f87867
1 changed files with 1 additions and 7 deletions
  1. 1 7
      Firmware/SpoolJoin.cpp

+ 1 - 7
Firmware/SpoolJoin.cpp

@@ -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;