diff --git a/README.md b/README.md index 84fbfa0..e0fab44 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,10 @@ Use [Etcher](https://www.balena.io/etcher/#download) or `dd` to create an bootab * `git submodule update` * `make release` +## Enable Label Printer ## + + + ## Create Standalone with Debian 11 Instructions how to create a standalone machine that boots directly to reHDD. This is aimed for production use, like several drives a day shredding. diff --git a/include/reHDD.h b/include/reHDD.h index aa664a2..2b88277 100644 --- a/include/reHDD.h +++ b/include/reHDD.h @@ -8,7 +8,7 @@ #ifndef REHDD_H_ #define REHDD_H_ -#define REHDD_VERSION "V1.0.0" +#define REHDD_VERSION "V1.1.0" // Drive handling Settings #define WORSE_HOURS 19200 //mark drive if at this limit or beyond diff --git a/include/shred.h b/include/shred.h index 586b862..3da43bb 100644 --- a/include/shred.h +++ b/include/shred.h @@ -21,9 +21,9 @@ #define CHUNK_SIZE 1024*1024*32 //amount of bytes that are overwritten at once --> 32MB #define TFNG_DATA_SIZE CHUNK_SIZE //amount of bytes used by tfng -//#define DEMO_DRIVE_SIZE 1024*1024*256L // 256MB +#define DEMO_DRIVE_SIZE 1024*1024*256L // 256MB //#define DEMO_DRIVE_SIZE 1024*1024*1024L // 1GB -#define DEMO_DRIVE_SIZE 5*1024*1024*1024L // 5GB +//#define DEMO_DRIVE_SIZE 5*1024*1024*1024L // 5GB //#define DEMO_DRIVE_SIZE 1024*1024*1024*10L // 10GB typedef int fileDescriptor; diff --git a/src/printer.cpp b/src/printer.cpp index cf97b86..e8db0bb 100644 --- a/src/printer.cpp +++ b/src/printer.cpp @@ -58,6 +58,8 @@ void Printer::print(Drive* drive) if (-1 == msgsnd(this->msqid, &msgQueueData, sizeof(t_msgQueueData) - sizeof(long), 0)) { Logger::logThis()->error("Printer: Send mgs queue failed!"); + }else{ + Logger::logThis()->info("Printer: print triggered - Drive: " + drive->getSerial()); } }