call printer
This commit is contained in:
@ -218,18 +218,16 @@ void reHDD::ThreadUserInput()
|
||||
break;
|
||||
case TUI::UserInput::Print:
|
||||
// cout << "Print" << endl;
|
||||
Logger::logThis()->info("User print single");
|
||||
if (tmpSelectedDrive != nullptr)
|
||||
{
|
||||
// printDrive(tmpSelectedDrive);
|
||||
printDrive(tmpSelectedDrive);
|
||||
}
|
||||
// ui->updateTUI(&listDrives, u16SelectedEntry);
|
||||
ui->updateTUI(&listDrives, u16SelectedEntry);
|
||||
break;
|
||||
case TUI::UserInput::PrintAll:
|
||||
// cout << "PrintAll" << endl;
|
||||
Logger::logThis()->info("User print all");
|
||||
// printAllDrives(&listDrives);
|
||||
// ui->updateTUI(&listDrives, u16SelectedEntry);
|
||||
printAllDrives(&listDrives);
|
||||
ui->updateTUI(&listDrives, u16SelectedEntry);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@ -265,7 +263,7 @@ void reHDD::printDrive(Drive *const pDrive)
|
||||
}
|
||||
#endif
|
||||
Logger::logThis()->info("User print for: " + pDrive->getModelName() + "-" + pDrive->getSerial());
|
||||
// TODO: Trigger printer for this drive
|
||||
Printer::getPrinter()->print(pDrive);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user