Report state of fsensor into the MMU code

This commit is contained in:
D.R.racer 2022-04-21 13:22:04 +02:00
parent 825eed97d4
commit 1211ad9360
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
#include "mmu2_fsensor.h"
#include "Filament_sensor.h"
namespace MMU2 {
FilamentState WhereIsFilament(){
// @@TODO
return FilamentState::IN_NOZZLE;
return fsensor.getFilamentPresent() ? FilamentState::IN_NOZZLE : FilamentState::NOT_PRESENT;
}
// on AVR this does nothing