Skip to content

Commit

Permalink
Apply suggested code consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Jun 28, 2024
1 parent 15d4e12 commit f0341eb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/FffGcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3937,12 +3937,14 @@ void FffGcodeWriter::setExtruder_addPrime(const SliceDataStorage& storage, Layer

void FffGcodeWriter::addPrimeTower(const SliceDataStorage& storage, LayerPlan& gcode_layer, const size_t prev_extruder) const
{
if (storage.prime_tower_)
if (! storage.prime_tower_)
{
LayerIndex layer_nr = gcode_layer.getLayerNr();
const std::vector<ExtruderUse> extruder_order = extruder_order_per_layer.get(layer_nr);
storage.prime_tower_->addToGcode(storage, gcode_layer, extruder_order, prev_extruder, gcode_layer.getExtruder());
return;
}

const LayerIndex layer_nr = gcode_layer.getLayerNr();
const std::vector<ExtruderUse> extruder_order = extruder_order_per_layer.get(layer_nr);
storage.prime_tower_->addToGcode(storage, gcode_layer, extruder_order, prev_extruder, gcode_layer.getExtruder());
}

void FffGcodeWriter::finalize()
Expand Down

0 comments on commit f0341eb

Please sign in to comment.