Update Pi zero2W warning message

pull/248/head
IanSB 2021-11-06 20:23:44 +00:00
rodzic cf2477ea7a
commit dac13f6c1f
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -3299,7 +3299,7 @@ void rgb_to_hdmi_main() {
}
#if defined(WARN_12BIT)
if (powerup || ((capinfo->sample_width >= SAMPLE_WIDTH_9LO) && !osd_active())) {
if (powerup || (capinfo->sample_width >= SAMPLE_WIDTH_9LO && capinfo->bpp >= 16 && !osd_active())) {
#else
if (powerup) {
#endif
@ -3319,7 +3319,7 @@ void rgb_to_hdmi_main() {
osd_set(0, ATTR_DOUBLE_SIZE, osdline);
osd_display_interface(2);
#if defined(WARN_12BIT)
if(capinfo->sample_width >= SAMPLE_WIDTH_9LO) {
if(capinfo->sample_width >= SAMPLE_WIDTH_9LO && capinfo->bpp >= 16) {
osd_set(2 + 4, 0, "9BPP & 12BPP NOT SUPPORTED on Pi Zero 2W");
osd_set(2 + 5, 0, "Please use a Pi Zero or Pi Zero W");
}