kopia lustrzana https://github.com/hoglet67/RGBtoHDMI
change "frontend" to "interface" in config.txt
rodzic
196183e450
commit
8ebe6708e1
|
@ -854,9 +854,9 @@ int file_save_config(char *resolution_name, int scaling, int current_frontend) {
|
||||||
frontend = current_frontend;
|
frontend = current_frontend;
|
||||||
}
|
}
|
||||||
if (frontend != 0) {
|
if (frontend != 0) {
|
||||||
sprintf((char*)(buffer + bytes_read), "#frontend_%X=%d\r\n", i, frontend);
|
sprintf((char*)(buffer + bytes_read), "#interface_%X=%d\r\n", i, frontend);
|
||||||
bytes_read += strlen((char*) (buffer + bytes_read));
|
bytes_read += strlen((char*) (buffer + bytes_read));
|
||||||
log_info("Save frontend_%X = %d", i, frontend);
|
log_info("Save interface_%X = %d", i, frontend);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3483,12 +3483,12 @@ void osd_init() {
|
||||||
if (cbytes) {
|
if (cbytes) {
|
||||||
char frontname[256];
|
char frontname[256];
|
||||||
for (int i=0; i< 16; i++) {
|
for (int i=0; i< 16; i++) {
|
||||||
sprintf(frontname, "#frontend_%X", i);
|
sprintf(frontname, "#interface_%X", i);
|
||||||
prop = get_prop_no_space(config_buffer, frontname);
|
prop = get_prop_no_space(config_buffer, frontname);
|
||||||
if (!prop) {
|
if (!prop) {
|
||||||
prop = "0";
|
prop = "0";
|
||||||
}
|
}
|
||||||
log_info("Read frontend_%X = %s", i, prop);
|
log_info("Read interface_%X = %s", i, prop);
|
||||||
all_frontends[i] = atoi(prop);
|
all_frontends[i] = atoi(prop);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue