change "frontend" to "interface" in config.txt

pull/143/head
IanSB 2020-02-12 01:03:40 +00:00
rodzic 196183e450
commit 8ebe6708e1
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -854,9 +854,9 @@ int file_save_config(char *resolution_name, int scaling, int current_frontend) {
frontend = current_frontend;
}
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));
log_info("Save frontend_%X = %d", i, frontend);
log_info("Save interface_%X = %d", i, frontend);
}
}

Wyświetl plik

@ -3483,12 +3483,12 @@ void osd_init() {
if (cbytes) {
char frontname[256];
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);
if (!prop) {
prop = "0";
}
log_info("Read frontend_%X = %s", i, prop);
log_info("Read interface_%X = %s", i, prop);
all_frontends[i] = atoi(prop);
}
}