Fix return value of WhereIsFilament()

getFilamentPresent returns the state of the IO pin of the sensor.
So we should use AT_FSENSOR instead of IN_NOZZLE
since the fsensor does not know if the filament is actually in the nozzle.
This commit is contained in:
Guðni Már Gilbert 2022-04-30 11:51:26 +00:00 committed by D.R.racer
parent 11290c1123
commit 96540d6e2d
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
namespace MMU2 {
FilamentState WhereIsFilament(){
return fsensor.getFilamentPresent() ? FilamentState::IN_NOZZLE : FilamentState::NOT_PRESENT;
return fsensor.getFilamentPresent() ? FilamentState::AT_FSENSOR : FilamentState::NOT_PRESENT;
}