updated readme and log print

This commit is contained in:
Hendrik Schutter 2022-11-24 20:29:01 +01:00
parent e7c8ee2423
commit a686c9a9d0
4 changed files with 9 additions and 3 deletions

View File

@ -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.

View File

@ -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

View File

@ -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;

View File

@ -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());
}
}