- Fixed bugs in sinqhttp.c, most notatbly the unknown error on hm init
- Added first slit to amorset - Added untested code for the POLDI strees machine
This commit is contained in:
10
slsmagnet.c
10
slsmagnet.c
@@ -758,6 +758,12 @@ static void slsdspCodeToText(int code, char *text, int textlen){
|
||||
int iRet, ival;
|
||||
char msg[6], reply[6];
|
||||
|
||||
assert(self);
|
||||
pMe = (pSLSDriv )self->pPrivate;
|
||||
assert(pMe);
|
||||
|
||||
|
||||
|
||||
msg[0] = DSPWRITE;
|
||||
msg[1] = 0x3c;
|
||||
if(strcmp(pCommand,"off") == 0){
|
||||
@@ -825,9 +831,6 @@ static void slsdspCodeToText(int code, char *text, int textlen){
|
||||
try to switch device on
|
||||
*/
|
||||
msg[0] = DSPWRITE;
|
||||
/* old device on
|
||||
msg[1] = 0x31;
|
||||
*/
|
||||
msg[1] = 0x3c;
|
||||
/*
|
||||
* ival = 0: ausschalten
|
||||
@@ -869,7 +872,6 @@ static void slsdspCodeToText(int code, char *text, int textlen){
|
||||
memcpy(msg+2, &ival,4);
|
||||
iRet = communicateSLS(pMe->pSock,msg,reply);
|
||||
*/
|
||||
|
||||
NETClosePort(pMe->pSock);
|
||||
pMe->pSock = NULL;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user