mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-02 23:00:41 +08:00
Add 57600 baud. #3782
This commit is contained in:
parent
b2bf08697a
commit
2fc8152e24
@ -126,7 +126,7 @@ sub new {
|
|||||||
my $serial_speed_sizer = Wx::BoxSizer->new(wxHORIZONTAL);
|
my $serial_speed_sizer = Wx::BoxSizer->new(wxHORIZONTAL);
|
||||||
{
|
{
|
||||||
$self->{serial_speed_combobox} = Wx::ComboBox->new($self, -1, $config->serial_speed, wxDefaultPosition, wxDefaultSize,
|
$self->{serial_speed_combobox} = Wx::ComboBox->new($self, -1, $config->serial_speed, wxDefaultPosition, wxDefaultSize,
|
||||||
["115200", "250000"]);
|
["57600", "115200", "250000"]);
|
||||||
$self->{serial_speed_combobox}->SetFont($Slic3r::GUI::small_font);
|
$self->{serial_speed_combobox}->SetFont($Slic3r::GUI::small_font);
|
||||||
$serial_speed_sizer->Add($self->{serial_speed_combobox}, 0, wxALIGN_CENTER_VERTICAL, 0);
|
$serial_speed_sizer->Add($self->{serial_speed_combobox}, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||||
}
|
}
|
||||||
|
@ -1069,6 +1069,7 @@ PrintConfigDef::PrintConfigDef()
|
|||||||
def->cli = "serial-speed=i";
|
def->cli = "serial-speed=i";
|
||||||
def->min = 1;
|
def->min = 1;
|
||||||
def->max = 300000;
|
def->max = 300000;
|
||||||
|
def->enum_values.push_back("57600");
|
||||||
def->enum_values.push_back("115200");
|
def->enum_values.push_back("115200");
|
||||||
def->enum_values.push_back("250000");
|
def->enum_values.push_back("250000");
|
||||||
def->default_value = new ConfigOptionInt(250000);
|
def->default_value = new ConfigOptionInt(250000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user