Commit 4c4ccbfa authored by Claes Sjofors's avatar Claes Sjofors

Xtt, RemnodeWMQ added to remnode table

parent 0fe77e06
...@@ -1336,7 +1336,7 @@ int XNav::show_remnode() ...@@ -1336,7 +1336,7 @@ int XNav::show_remnode()
strcpy( th.title[th.table_cnt++], "Description"); strcpy( th.title[th.table_cnt++], "Description");
new ItemTableHeader( brow, this, "Title", &th, NULL, flow_eDest_IntoLast); new ItemTableHeader( brow, this, "Title", &th, NULL, flow_eDest_IntoLast);
for ( int i = 0; i < 7; i++) { for ( int i = 0; i < 8; i++) {
switch ( i) { switch ( i) {
case 0: cid = pwr_cClass_RemnodeUDP; break; case 0: cid = pwr_cClass_RemnodeUDP; break;
case 1: cid = pwr_cClass_RemnodeTCP; break; case 1: cid = pwr_cClass_RemnodeTCP; break;
...@@ -1345,6 +1345,7 @@ int XNav::show_remnode() ...@@ -1345,6 +1345,7 @@ int XNav::show_remnode()
case 4: cid = pwr_cClass_RemnodeSerial; break; case 4: cid = pwr_cClass_RemnodeSerial; break;
case 5: cid = pwr_cClass_RemnodeModbus; break; case 5: cid = pwr_cClass_RemnodeModbus; break;
case 6: cid = pwr_cClass_RemnodeMQ; break; case 6: cid = pwr_cClass_RemnodeMQ; break;
case 7: cid = pwr_cClass_RemnodeWMQ; break;
} }
sts = gdh_GetClassList( cid, &objid); sts = gdh_GetClassList( cid, &objid);
...@@ -1392,6 +1393,11 @@ int XNav::show_remnode() ...@@ -1392,6 +1393,11 @@ int XNav::show_remnode()
strncpy( description, ((pwr_sClass_RemnodeMQ *)object_ptr)->Description, strncpy( description, ((pwr_sClass_RemnodeMQ *)object_ptr)->Description,
sizeof(description)); sizeof(description));
break; break;
case 7:
strncpy( id, ((pwr_sClass_RemnodeWMQ *)object_ptr)->Id, sizeof(id));
strncpy( description, ((pwr_sClass_RemnodeWMQ *)object_ptr)->Description,
sizeof(description));
break;
} }
t.elem_cnt = 0; t.elem_cnt = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment