1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Fix signal and format handling

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2024-04-09 23:39:34 +02:00 committed by pipeacosta
parent 55238f58b9
commit 95610be274
3 changed files with 4 additions and 4 deletions

View file

@ -79,7 +79,7 @@ void Format::start(SignalList::Ptr sigs, int fl) {
}
void Format::start(const std::string &dtypes, int fl) {
flags |= fl;
flags &= fl;
signals = std::make_shared<SignalList>(dtypes.c_str());
if (!signals)

View file

@ -204,6 +204,6 @@ static char d[] = "VILLAS human readable format";
static LineFormatPlugin<
VILLASHumanFormat, n, d,
(int)SampleFlags::HAS_TS_ORIGIN | (int)SampleFlags::HAS_SEQUENCE |
(int)SampleFlags::HAS_DATA | (int)SampleFlags::NEW_FRAME,
(int)SampleFlags::HAS_DATA | (int)SampleFlags::NEW_FRAME | (int)SampleFlags::HAS_OFFSET,
'\n'>
p;

View file

@ -524,12 +524,12 @@ void Path::start() {
received.reset();
// We initialize the intial sample
// We initialize the initial sample
last_sample = sample_alloc(&pool);
if (!last_sample)
throw MemoryAllocationError();
last_sample->length = signals->size();
last_sample->length = 0;
last_sample->signals = signals;
last_sample->ts.origin = time_now();
last_sample->sequence = 0;