small odrivetool restore-config fix

This commit is contained in:
Kaspar Schleiser
2018-06-20 12:50:05 +02:00
parent 1d750c10de
commit 31ae9b0d50
+1 -1
View File
@@ -71,7 +71,7 @@ def restore_config(device, filename, logger):
data = json.load(file)
logger.info("Restoring configuration from {}...".format(filename))
errors = odrive.configuration.set_dict(device, "", data)
errors = set_dict(device, "", data)
for error in errors:
logger.info(error)