Add '_' between parts Environment Controller
This commit is contained in:
@ -674,7 +674,7 @@ pEVControl CreateEVController(pEVDriver pDriv, char *pName, int *iErr)
|
|||||||
memset(pRes, 0, sizeof(EVControl));
|
memset(pRes, 0, sizeof(EVControl));
|
||||||
|
|
||||||
/* new Object Descriptor */
|
/* new Object Descriptor */
|
||||||
pRes->pDes = CreateDescriptor("Environment Controller");
|
pRes->pDes = CreateDescriptor("Environment_Controller");
|
||||||
if (!pRes->pDes) {
|
if (!pRes->pDes) {
|
||||||
free(pRes);
|
free(pRes);
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1481,7 +1481,7 @@ int EVControlFactory(SConnection * pCon, SicsInterp * pSics, void *pData,
|
|||||||
}
|
}
|
||||||
strtolower(argv[2]);
|
strtolower(argv[2]);
|
||||||
strtolower(argv[3]);
|
strtolower(argv[3]);
|
||||||
if (FindCommandData(pSics, argv[2], "Environment Controller")) {
|
if (FindCommandData(pSics, argv[2], "Environment_Controller")) {
|
||||||
if (strcmp(argv[1], "replace") == 0) {
|
if (strcmp(argv[1], "replace") == 0) {
|
||||||
if (!RemoveEVController(pCon, argv[2])) {
|
if (!RemoveEVController(pCon, argv[2])) {
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user