Add a reminder of internal CRSF speed in model setup

This commit is contained in:
3djc
2022-03-21 11:48:50 +01:00
committed by Raphael Coeffic
parent 7ec58d06d6
commit f090c599df
5 changed files with 21 additions and 14 deletions
+7
View File
@@ -158,6 +158,13 @@ char *getStringAtIndex(char *dest, const char *s, int idx)
return dest;
}
const char *getStringAtIndex(const char *s, int idx)
{
uint8_t len = s[0];
return s + 1 + len * idx;
}
char *strAppendStringWithIndex(char *dest, const char *s, int idx)
{
return strAppendUnsigned(strAppend(dest, s), abs(idx));