From 439ee181d1bb3d97e3155de82531f9afc825cff4 Mon Sep 17 00:00:00 2001 From: bggardner Date: Tue, 2 Jun 2020 09:14:18 -0400 Subject: [PATCH] SdoClient needs ObjectDictionary argument --- canopen/objectdictionary/eds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canopen/objectdictionary/eds.py b/canopen/objectdictionary/eds.py index 5ccd42e8..fa6a4f7c 100644 --- a/canopen/objectdictionary/eds.py +++ b/canopen/objectdictionary/eds.py @@ -113,7 +113,7 @@ def import_from_node(node_id, network): :param network: network object """ # Create temporary SDO client - sdo_client = SdoClient(0x600 + node_id, 0x580 + node_id, None) + sdo_client = SdoClient(0x600 + node_id, 0x580 + node_id, objectdictionary.ObjectDictionary()) sdo_client.network = network # Subscribe to SDO responses network.subscribe(0x580 + node_id, sdo_client.on_response)