Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions gbs-control.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7255,6 +7255,10 @@ void ICACHE_RAM_ATTR isrRotaryEncoder()
}
void setup()
{
// Wait for power to stabilize, to reduce the risk of the ESP failing to boot until
// manually reset (https://github.com/ramapcsx2/gbs-control/issues/480).
delay(500);

display.init(); //inits OLED on I2C bus
display.flipScreenVertically(); //orientation fix for OLED

Expand Down Expand Up @@ -9447,7 +9451,7 @@ void handleType2Command(char argument)
break;
case 'O':
// info
if (GBS::ADC_INPUT_SEL::read() == 1)
if (GBS::ADC_INPUT_SEL::read() == 1)
{
SerialM.println("RGB reg");
SerialM.println(F("------------ "));
Expand All @@ -9463,8 +9467,8 @@ void handleType2Command(char argument)
SerialM.println(GBS::VDS_USIN_GAIN::read(), DEC);
SerialM.print(F("UCOS_GAIN: "));
SerialM.println(GBS::VDS_UCOS_GAIN::read(), DEC);
}
else
}
else
{
SerialM.println("YPbPr reg");
SerialM.println(F("------------ "));
Expand Down Expand Up @@ -9497,7 +9501,7 @@ void handleType2Command(char argument)
GBS::ADC_BOFCTRL::write(adco->b_off);
SerialM.println("RGB:defauit");
}
else
else
{
GBS::VDS_Y_GAIN::write(128);
GBS::VDS_UCOS_GAIN::write(28);
Expand Down