From 2d1550dba2d2c1af631a5aac1be5d29f78a11376 Mon Sep 17 00:00:00 2001 From: localhorst Date: Fri, 12 Dec 2025 22:28:57 +0100 Subject: [PATCH] call printer --- src/reHDD.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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); } }