Skip to content

Commit dedd24a

Browse files
committed
Change Eth Config entry/exit displays
1 parent df898f6 commit dedd24a

File tree

3 files changed

+37
-15
lines changed

3 files changed

+37
-15
lines changed

Firmware/RTK_Everywhere/Display.ino

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2943,22 +2943,44 @@ void displayNTPFail(uint16_t displayTime)
29432943
}
29442944
}
29452945

2946-
void displayConfigViaEthNotStarted(uint16_t displayTime)
2946+
void displayConfigViaEthStarting(uint16_t displayTime)
29472947
{
29482948
if (online.display == true)
29492949
{
29502950
oled->erase();
29512951

2952-
uint8_t fontHeight = 8;
2952+
uint8_t fontHeight = 12;
2953+
uint8_t yPos = fontHeight;
2954+
2955+
printTextCenter("Configure", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
2956+
yPos += fontHeight;
2957+
printTextCenter("Via", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
2958+
yPos += fontHeight;
2959+
printTextCenter("Ethernet", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
2960+
yPos += fontHeight;
2961+
printTextCenter("Starting", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
2962+
2963+
oled->display();
2964+
2965+
delay(displayTime);
2966+
}
2967+
}
2968+
void displayConfigViaEthExiting(uint16_t displayTime)
2969+
{
2970+
if (online.display == true)
2971+
{
2972+
oled->erase();
2973+
2974+
uint8_t fontHeight = 12;
29532975
uint8_t yPos = fontHeight;
29542976

2955-
printTextCenter("Configure", yPos, QW_FONT_5X7, 1, false); // text, y, font type, kerning, inverted
2977+
printTextCenter("Configure", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
29562978
yPos += fontHeight;
2957-
printTextCenter("Via", yPos, QW_FONT_5X7, 1, false); // text, y, font type, kerning, inverted
2979+
printTextCenter("Via", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
29582980
yPos += fontHeight;
2959-
printTextCenter("Ethernet", yPos, QW_FONT_5X7, 1, false); // text, y, font type, kerning, inverted
2981+
printTextCenter("Ethernet", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
29602982
yPos += fontHeight;
2961-
printTextCenter("Restart", yPos, QW_FONT_5X7, 1, true); // text, y, font type, kerning, inverted
2983+
printTextCenter("Exiting", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
29622984

29632985
oled->display();
29642986

@@ -2972,16 +2994,16 @@ void displayConfigViaEthStarted(uint16_t displayTime)
29722994
{
29732995
oled->erase();
29742996

2975-
uint8_t fontHeight = 8;
2997+
uint8_t fontHeight = 12;
29762998
uint8_t yPos = fontHeight;
29772999

2978-
printTextCenter("Configure", yPos, QW_FONT_5X7, 1, false); // text, y, font type, kerning, inverted
3000+
printTextCenter("Configure", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
29793001
yPos += fontHeight;
2980-
printTextCenter("Via", yPos, QW_FONT_5X7, 1, false); // text, y, font type, kerning, inverted
3002+
printTextCenter("Via", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
29813003
yPos += fontHeight;
2982-
printTextCenter("Ethernet", yPos, QW_FONT_5X7, 1, false); // text, y, font type, kerning, inverted
3004+
printTextCenter("Ethernet", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
29833005
yPos += fontHeight;
2984-
printTextCenter("Started", yPos, QW_FONT_5X7, 1, false); // text, y, font type, kerning, inverted
3006+
printTextCenter("Started", yPos, QW_FONT_8X16, 1, false); // text, y, font type, kerning, inverted
29853007

29863008
oled->display();
29873009

Firmware/RTK_Everywhere/States.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ void stateUpdate()
856856
break;
857857

858858
case (STATE_CONFIG_VIA_ETH_NOT_STARTED): {
859-
displayConfigViaEthNotStarted(1500);
859+
displayConfigViaEthStarting(1500);
860860

861861
settings.updateGNSSSettings = false; // On the next boot, no need to update the GNSS on this profile
862862
settings.lastState = STATE_CONFIG_VIA_ETH_STARTED; // Record the _next_ state for POR
@@ -876,7 +876,7 @@ void stateUpdate()
876876
// ints).
877877
if (!configureViaEthernet)
878878
{
879-
displayConfigViaEthNotStarted(1500);
879+
displayConfigViaEthStarting(1500);
880880
settings.lastState = STATE_CONFIG_VIA_ETH_STARTED; // Re-record this state for POR
881881
recordSystemSettings();
882882

@@ -949,7 +949,7 @@ void stateUpdate()
949949
break;
950950

951951
case (STATE_CONFIG_VIA_ETH_RESTART_BASE): {
952-
displayConfigViaEthNotStarted(1000);
952+
displayConfigViaEthExiting(1000);
953953

954954
ethernetWebServerStopESP32W5500();
955955

Firmware/RTK_Everywhere/menuMain.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void menuMain()
147147

148148
if (incoming == 'r')
149149
{
150-
displayConfigViaEthNotStarted(1000);
150+
displayConfigViaEthStarting(1000);
151151

152152
ethernetWebServerStopESP32W5500();
153153

0 commit comments

Comments
 (0)