From 3e9cc87717e78f7fbeea9011dd94fd3718803c69 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Fri, 27 Jun 2025 10:16:04 +0200 Subject: [PATCH] Using uint(x) as datatype in EtherLab Pdos output. --- tool/CommandPdos.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/CommandPdos.cpp b/tool/CommandPdos.cpp index 2b5b5a6b..bbb8cdd5 100644 --- a/tool/CommandPdos.cpp +++ b/tool/CommandPdos.cpp @@ -295,9 +295,9 @@ void CommandPdos::etherlabConfig( cout << var.str() << ".pdo = [" << i << ", " << j << ", " << k << ", 0];" << endl; - cout << var.str() << ".pdo_data_type = " - << 1000 + (unsigned int) entry.bit_length - << ";" << endl << endl; + cout << var.str() << ".pdo_data_type = uint(" + << (unsigned int) entry.bit_length + << ");" << endl << endl; } } }