From 2ab1f99aa40c6a55766eb1af12ec147cab82ac87 Mon Sep 17 00:00:00 2001 From: Loic Guegan <manzerbredes@mailbox.org> Date: Thu, 8 Sep 2022 10:07:01 +0200 Subject: [PATCH] Debug node --- esds/node.py | 2 +- esds/plugins/power_states.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esds/node.py b/esds/node.py index 238c08d..4f16f46 100644 --- a/esds/node.py +++ b/esds/node.py @@ -34,7 +34,7 @@ class Node: if reason == "send_return": p.on_send_return(args[0],args[1],args[2],args[3],args[4]) if reason == "on_communication_end": - p.on_communication_end(args[0],time,args[1]) + p.on_communication_end(time,args) if reason == "terminated": p.on_terminated() diff --git a/esds/plugins/power_states.py b/esds/plugins/power_states.py index f430217..b5349fd 100644 --- a/esds/plugins/power_states.py +++ b/esds/plugins/power_states.py @@ -123,7 +123,7 @@ class PowerStatesComms(NodePlugin): self.tx_clock=self.api.read("clock") def on_communication_end(self,time,com_event): - pass + print(com_event) def on_send_return(self,interface,data,datasize,dst,code): clock=self.api.read("clock")