EuroMove fix "addrCommand" bug in controller

This commit is contained in:
Michele Brambilla
2022-03-02 06:41:39 +01:00
parent 68a265b199
commit 646607e476

View File

@ -5,7 +5,7 @@ USAGE... Motor driver support for the EuroMove motor controller from LLB.
This is a driver for the EuroMove motor controller from LLB. This device talks to us either via
GPIB or USB. The controller is fairly simple. It can control quite a number of motors.
Reworked in 06/2021 to work with the Prologix GPIV-Ethernte converter
Reworked in 06/2021 to work with the Prologix GPIV-Ethernet converter
mark.koennecke@psi.ch
*/
@ -58,7 +58,7 @@ EuroMoveController::EuroMoveController(const char *portName, const char *EuroMov
/* Save gpib address and prepare addr string */
this->gpibAddr = gpibAddr;
snprintf(addrCommand,strlen(addrCommand), "++addr %d", gpibAddr);
snprintf(this->addrCommand,sizeof(addrCommand), "++addr %d", gpibAddr);
/*
Configure the Prologix interface to our liking