Fix warning

This commit is contained in:
Ben Meadors 2025-06-07 06:23:23 -05:00
parent fd8cc1c78b
commit a8706ca635

View File

@ -1823,7 +1823,7 @@ void CannedMessageModule::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *st
} }
// If word itself too big, split by character // If word itself too big, split by character
if (wordWidth > maxWidth) { if (wordWidth > maxWidth) {
int charPos = 0; uint16_t charPos = 0;
while (charPos < word.length()) { while (charPos < word.length()) {
String oneChar = word.substring(charPos, charPos + 1); String oneChar = word.substring(charPos, charPos + 1);
int charWidth = display->getStringWidth(oneChar); int charWidth = display->getStringWidth(oneChar);