diff --git a/src/reHDD.cpp b/src/reHDD.cpp index 71aa1c5..7dffd4e 100644 --- a/src/reHDD.cpp +++ b/src/reHDD.cpp @@ -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); } }