updated readme and log print
This commit is contained in:
parent
e7c8ee2423
commit
a686c9a9d0
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue