mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
iex61850: re-enable compilation of node-type
This commit is contained in:
parent
03eb295a8f
commit
a224c09971
2 changed files with 9 additions and 7 deletions
|
@ -43,6 +43,11 @@
|
|||
|
||||
#include <villas/list.h>
|
||||
#include <villas/signal.h>
|
||||
#include <villas/super_node.hpp>
|
||||
|
||||
#ifndef CONFIG_GOOSE_DEFAULT_DST_ADDRESS
|
||||
#define CONFIG_GOOSE_DEFAULT_DST_ADDRESS {0x01, 0x0c, 0xcd, 0x01, 0x00, 0x01}
|
||||
#endif
|
||||
|
||||
/* Forward declarations */
|
||||
struct vnode;
|
||||
|
|
|
@ -20,12 +20,11 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************************/
|
||||
|
||||
#if CONFIG_IEC61850_SAMPLED_VALUES_SUPPORT == 1
|
||||
|
||||
#include <cstring>
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <villas/utils.hpp>
|
||||
#include <villas/nodes/iec61850_sv.hpp>
|
||||
|
||||
#define CONFIG_SV_DEFAULT_APPID 0x4000
|
||||
|
@ -52,7 +51,7 @@ static void iec61850_sv_listener(SVSubscriber subscriber, void *ctx, SVSubscribe
|
|||
|
||||
sz = SVSubscriber_ASDU_getDataSize(asdu);
|
||||
if (sz < i->in.total_size) {
|
||||
n->node->warn("Received truncated ASDU: size={}, expected={}", SVSubscriber_ASDU_getDataSize(asdu), i->in.total_size);
|
||||
n->logger->warn("Received truncated ASDU: size={}, expected={}", SVSubscriber_ASDU_getDataSize(asdu), i->in.total_size);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -483,8 +482,8 @@ static void register_plugin() {
|
|||
p.description = "IEC 61850-9-2 (Sampled Values)";
|
||||
p.vectorize = 0;
|
||||
p.size = sizeof(struct iec61850_sv);
|
||||
p.start = iec61850_type_start;
|
||||
p.stop = iec61850_type_stop;
|
||||
p.type.start = iec61850_type_start;
|
||||
p.type.stop = iec61850_type_stop;
|
||||
p.destroy = iec61850_sv_destroy;
|
||||
p.parse = iec61850_sv_parse;
|
||||
p.print = iec61850_sv_print;
|
||||
|
@ -499,5 +498,3 @@ static void register_plugin() {
|
|||
|
||||
node_types->push_back(&p);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_IEC61850_SAMPLED_VALUES_SUPPORT */
|
||||
|
|
Loading…
Add table
Reference in a new issue