Skip to content

Commit

Permalink
Fix building on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Dec 6, 2023
1 parent 358ce9d commit 4bd604f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gcodeExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,7 @@ void GCodeExport::writeFanCommand(double speed)
else if (speed > 0)
{
const bool should_scale_zero_to_one = Application::getInstance().current_slice_->scene.settings.get<bool>("machine_scale_fan_speed_zero_to_one");
*output_stream_ << "M106 S" << PrecisionedDouble{ (should_scale_zero_to_one ? 2u : 1u), (should_scale_zero_to_one ? speed : speed * 255) / 100 };
*output_stream_ << "M106 S" << PrecisionedDouble{ (should_scale_zero_to_one ? static_cast<uint8_t>(2): static_cast<uint8_t>(1)), (should_scale_zero_to_one ? speed : speed * 255) / 100 };
if (fan_number_)
{
*output_stream_ << " P" << fan_number_;
Expand Down

0 comments on commit 4bd604f

Please sign in to comment.