Throw an error for first_layer_height == 0. #2605

This commit is contained in:
Alessandro Ranellucci 2015-02-01 12:18:18 +01:00
parent 07cd25d0ec
commit 8b6b192dac

View File

@ -218,6 +218,8 @@ sub validate {
# --first-layer-height # --first-layer-height
die "Invalid value for --first-layer-height\n" die "Invalid value for --first-layer-height\n"
if $self->first_layer_height !~ /^(?:\d*(?:\.\d+)?)%?$/; if $self->first_layer_height !~ /^(?:\d*(?:\.\d+)?)%?$/;
die "Invalid value for --first-layer-height\n"
if $self->get_value('first_layer_height') <= 0;
# --filament-diameter # --filament-diameter
die "Invalid value for --filament-diameter\n" die "Invalid value for --filament-diameter\n"