mirror of
https://github.com/DigitalDevices/octonet.git
synced 2023-10-10 13:36:52 +02:00
more fe type info
This commit is contained in:
parent
0deac27bb5
commit
7af94f8977
@ -241,6 +241,7 @@ void send_serverinfo(struct os_ssdp *ss)
|
|||||||
sendstr(fd, "Octoserve.DeviceID = %u;\r\n", ss->devid);
|
sendstr(fd, "Octoserve.DeviceID = %u;\r\n", ss->devid);
|
||||||
sendstr(fd, "Octoserve.MAC = \"%02x:%02x:%02x:%02x:%02x:%02x\";\r\n",
|
sendstr(fd, "Octoserve.MAC = \"%02x:%02x:%02x:%02x:%02x:%02x\";\r\n",
|
||||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||||
|
sendstr(fd, "Octoserve.DelsysMask = %u;\r\n", os->delsys_mask);
|
||||||
sendstr(fd, "Octoserve.TunerList = new Array();\r\n");
|
sendstr(fd, "Octoserve.TunerList = new Array();\r\n");
|
||||||
for (i = 0; i < os->dvbfe_num; i++) {
|
for (i = 0; i < os->dvbfe_num; i++) {
|
||||||
struct dvbfe *fe = &os->dvbfe[i];
|
struct dvbfe *fe = &os->dvbfe[i];
|
||||||
@ -280,7 +281,7 @@ void send_serverinfo(struct os_ssdp *ss)
|
|||||||
types[pos] = '-';
|
types[pos] = '-';
|
||||||
}
|
}
|
||||||
sendstr(fd, "Octoserve.TunerList[%d] = new Object();\r\n", i);
|
sendstr(fd, "Octoserve.TunerList[%d] = new Object();\r\n", i);
|
||||||
sendstr(fd, "Octoserve.TunerList[%d].Type = 0;\r\n", i);
|
sendstr(fd, "Octoserve.TunerList[%d].Type = %u;\r\n", i, fe->type_orig);
|
||||||
sendstr(fd, "Octoserve.TunerList[%d].Desc = \"%s\";\r\n", i, types);
|
sendstr(fd, "Octoserve.TunerList[%d].Desc = \"%s\";\r\n", i, types);
|
||||||
} else {
|
} else {
|
||||||
sendstr(fd, "Octoserve.TunerList[%d] = false;\r\n", i);
|
sendstr(fd, "Octoserve.TunerList[%d] = false;\r\n", i);
|
||||||
@ -345,7 +346,7 @@ void send_json_serverinfo(struct os_ssdp *ss)
|
|||||||
types[pos] = '-';
|
types[pos] = '-';
|
||||||
}
|
}
|
||||||
sendstr(fd, ",\"Present\":true", i);
|
sendstr(fd, ",\"Present\":true", i);
|
||||||
sendstr(fd, ",\"Type\":0");
|
sendstr(fd, ",\"Type\":%u", fe->type);
|
||||||
sendstr(fd, ",\"Desc\":\"%s\"", types);
|
sendstr(fd, ",\"Desc\":\"%s\"", types);
|
||||||
} else {
|
} else {
|
||||||
sendstr(fd, "\"Present\":false", i);
|
sendstr(fd, "\"Present\":false", i);
|
||||||
|
Loading…
Reference in New Issue
Block a user