diff --git a/src/modules/CannedMessageModule.cpp b/src/modules/CannedMessageModule.cpp index 85eb8a927..2714353b4 100644 --- a/src/modules/CannedMessageModule.cpp +++ b/src/modules/CannedMessageModule.cpp @@ -1777,7 +1777,7 @@ void CannedMessageModule::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *st } else { // Text: split by words and wrap inside word if needed String text = token.second; - int pos = 0; + uint16_t pos = 0; while (pos < text.length()) { // Find next space (or end) int spacePos = text.indexOf(' ', pos);