Run Trunk Format and Translate Comments FR->EN

This commit is contained in:
Tom Fifield 2025-04-20 18:49:18 +10:00
parent 19a19c9bcf
commit 436c2d0cb0

View File

@ -249,15 +249,15 @@ static void drawEthernetFrame(OLEDDisplay *display, OLEDDisplayUiState *state, i
display->setColor(WHITE); display->setColor(WHITE);
// Position verticale ajustée - commence plus haut // Adjust vertical position verticale ajustée - starts higher
int16_t y_offset = y + 2; // Réduit l'espace au-dessus int16_t y_offset = y + 2; // Reduces space at top
// Alignement à gauche (x + petit offset) // Left Alignement (x + small offset)
int16_t x_offset = x + 2; int16_t x_offset = x + 2;
// Affichage non centré, aligné à gauche // Display is not centered, align left
display->drawString(x_offset, y_offset, "Ethernet Config:"); display->drawString(x_offset, y_offset, "Ethernet Config:");
y_offset += FONT_HEIGHT_SMALL + 2; // Espacement légèrement réduit y_offset += FONT_HEIGHT_SMALL + 2; // Slightly reduced spacing
display->drawString(x_offset, y_offset, "IP: " + Ethernet.localIP().toString()); display->drawString(x_offset, y_offset, "IP: " + Ethernet.localIP().toString());
y_offset += FONT_HEIGHT_SMALL; y_offset += FONT_HEIGHT_SMALL;
@ -272,7 +272,6 @@ static void drawEthernetFrame(OLEDDisplay *display, OLEDDisplayUiState *state, i
} }
#endif #endif
void Screen::drawFrameText(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y, const char *message) void Screen::drawFrameText(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y, const char *message)
{ {
uint16_t x_offset = display->width() / 2; uint16_t x_offset = display->width() / 2;