Fix issue with osd bank selection in mode 7 & change DAC levels in TTL mode

pull/110/head
IanSB 2019-11-26 18:35:00 +00:00
rodzic ae576daf52
commit b9d68a1805
2 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -242,9 +242,9 @@ static void write_config(config_t *config) {
if (sync < 8) sync = 8; // if sync is set too low then sync is just noise which causes software problems
if (config->interface == INTERFACE_TTL) {
sendDAC(0, 0xff); // addr 0 + range 0
sendDAC(1, 0xff); // addr 1 + range 0
sendDAC(2, 0xff); // addr 2 + range 0
sendDAC(0, 0x20); // addr 0 + range 0
sendDAC(1, 0x28); // addr 1 + range 0
sendDAC(2, 0x28); // addr 2 + range 0
sendDAC(3, 0xff); // addr 3 + range 0
} else {
sendDAC(0, config->lvl_100); // addr 0 + range 0

Wyświetl plik

@ -1629,7 +1629,11 @@ void swapBuffer(int buffer) {
#endif
int get_current_display_buffer() {
return current_display_buffer;
if (mode7) {
return 0;
} else {
return current_display_buffer;
}
}
void set_profile(int val) {