call printer

This commit is contained in:
2025-12-12 22:28:57 +01:00
parent 550dd6a59f
commit 2d1550dba2

View File

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