Marlin with a filament diameter sensor that controls extruder