mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-11-15 13:35:52 +00:00
Fix serial console printer switching
This commit is contained in:
1 parent
1516b785f5
commit
69d98a9e19
1 file changed
+4
-4
@@ -317,15 +317,15 @@ void brightness(String argv[])
|
||||
void printer(String argv[])
|
||||
{
|
||||
int ndx = argv[1].toInt();
|
||||
if(ndx == -1)
|
||||
if(ndx <= -1)
|
||||
{
|
||||
global_config.multi_printer_mode = false;
|
||||
switch_printer(0);
|
||||
set_current_printer(0);
|
||||
}
|
||||
else if( ndx >=0 && ndx < PRINTER_CONFIG_COUNT)
|
||||
else if( ndx >= 0 && ndx < get_printer_count())
|
||||
{
|
||||
global_config.multi_printer_mode = true;
|
||||
switch_printer(ndx);
|
||||
set_current_printer(ndx);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user