Index: xagyl_wheel.cpp =================================================================== --- xagyl_wheel.cpp (revision 2657) +++ xagyl_wheel.cpp (working copy) @@ -185,7 +185,7 @@ if (rc) { int fwver=0; - int fw_rc = sscanf(resp, "FW%d", &fwver); + int fw_rc = sscanf(resp, "%d", &fwver); if (fw_rc > 0) { @@ -421,7 +421,7 @@ DEBUGF(INDI::Logger::DBG_DEBUG, "CMD (%s)", command); - if (!sim && (rc = tty_write(PortFD, command, strlen(command)+1, &nbytes_written)) != TTY_OK) + if (!sim && (rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK) { tty_error_msg(rc, errstr, MAXRBUF); DEBUGF(INDI::Logger::DBG_ERROR, "%s error: %s.", command, errstr); @@ -523,7 +523,7 @@ DEBUGF(INDI::Logger::DBG_DEBUG, "CMD (%s)", command); - if (!sim && (rc = tty_write(PortFD, command, strlen(command)+1, &nbytes_written)) != TTY_OK) + if (!sim && (rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK) { tty_error_msg(rc, errstr, MAXRBUF); DEBUGF(INDI::Logger::DBG_ERROR, "%s error: %s.", command, errstr); @@ -824,7 +824,7 @@ DEBUGF(INDI::Logger::DBG_DEBUG, "CMD (%s)", command); - if (!sim && (rc = tty_write(PortFD, command, strlen(command)+1, &nbytes_written)) != TTY_OK) + if (!sim && (rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK) { tty_error_msg(rc, errstr, MAXRBUF); DEBUGF(INDI::Logger::DBG_ERROR, "%s error: %s.", command, errstr); @@ -852,7 +852,7 @@ DEBUGF(INDI::Logger::DBG_DEBUG, "CMD (%s)", command); - if (!sim && (rc = tty_write(PortFD, command, strlen(command)+1, &nbytes_written)) != TTY_OK) + if (!sim && (rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK) { tty_error_msg(rc, errstr, MAXRBUF); DEBUGF(INDI::Logger::DBG_ERROR, "%s error: %s.", command, errstr); @@ -898,7 +898,7 @@ DEBUGF(INDI::Logger::DBG_DEBUG, "CMD (%s)", command); - if (!sim && (rc = tty_write(PortFD, command, strlen(command)+1, &nbytes_written)) != TTY_OK) + if (!sim && (rc = tty_write(PortFD, command, strlen(command), &nbytes_written)) != TTY_OK) { tty_error_msg(rc, errstr, MAXRBUF); DEBUGF(INDI::Logger::DBG_ERROR, "%s error: %s.", command, errstr);