From 3e17e760fda35d8087b691b9a3f23e20a54b64e0 Mon Sep 17 00:00:00 2001 From: Simon Jansen Date: Fri, 18 Mar 2016 15:42:20 +0100 Subject: [PATCH] Fix: New order in digital outputs 0-7: standard digital out 8-15: configurable digital out 16-17: tool digital out --- src/ur_driver.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ur_driver.cpp b/src/ur_driver.cpp index 5572aa2..db161a9 100644 --- a/src/ur_driver.cpp +++ b/src/ur_driver.cpp @@ -300,12 +300,12 @@ void UrDriver::setDigitalOut(unsigned int n, bool b) { if (firmware_version_ < 2) { sprintf(buf, "sec setOut():\n\tset_digital_out(%d, %s)\nend\n", n, b ? "True" : "False"); - } else if (n > 9) { - sprintf(buf, - "sec setOut():\n\tset_configurable_digital_out(%d, %s)\nend\n", - n - 10, b ? "True" : "False"); + } else if (n > 15) { + sprintf(buf, + "sec setOut():\n\tset_tool_digital_out(%d, %s)\nend\n", + n - 16, b ? "True" : "False"); } else if (n > 7) { - sprintf(buf, "sec setOut():\n\tset_tool_digital_out(%d, %s)\nend\n", + sprintf(buf, "sec setOut():\n\tset_configurable_digital_out(%d, %s)\nend\n", n - 8, b ? "True" : "False"); } else {