Skip to content

Commit c5c1788

Browse files
committed
Add prefix to profile names
Fix for #670
1 parent e1d04c1 commit c5c1788

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Firmware/RTK_Surveyor/Display.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2581,7 +2581,13 @@ void paintDisplaySetupProfile(const char *firstState)
25812581
{
25822582
// Lookup next available profile, limit to 8 characters
25832583
getProfileNameFromUnit(index, profileName, sizeof(profileName));
2584-
printTextCenter(profileName, 12 * itemsDisplayed, QW_FONT_8X16, 1, itemsDisplayed == 3);
2584+
2585+
profileName[6]= 0; //Shorten profileName to 6 characters
2586+
2587+
char miniProfileName[16] = {0};
2588+
snprintf(miniProfileName, sizeof(miniProfileName), "%d_%s", index, profileName); //Prefix with index #
2589+
2590+
printTextCenter(miniProfileName, 12 * itemsDisplayed, QW_FONT_8X16, 1, itemsDisplayed == 3);
25852591
index++;
25862592
}
25872593
}

0 commit comments

Comments
 (0)