mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-20 23:05:17 +03:00
Merge pull request #4284 from iNavFlight/agh_fix_max7456_screen_size
Check the correct bit in VM0 to detect screen size
This commit is contained in:
commit
9f90c1a3db
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ uint16_t max7456GetScreenSize(void)
|
||||||
// deal with a zero returned from here.
|
// deal with a zero returned from here.
|
||||||
// TODO: Inspect all callers, make sure they can handle zero and
|
// TODO: Inspect all callers, make sure they can handle zero and
|
||||||
// change this function to return zero before initialization.
|
// change this function to return zero before initialization.
|
||||||
if (state.isInitialized && (state.registers.vm0 & VIDEO_LINES_NTSC)) {
|
if (state.isInitialized && ((state.registers.vm0 & VIDEO_MODE_PAL) == 0)) {
|
||||||
return VIDEO_BUFFER_CHARS_NTSC;
|
return VIDEO_BUFFER_CHARS_NTSC;
|
||||||
}
|
}
|
||||||
return VIDEO_BUFFER_CHARS_PAL;
|
return VIDEO_BUFFER_CHARS_PAL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue