fix: Adjust pointer so extra character not included in source name when logging

The adding of UTF-8 support in 30e3ac3 / #1900 meant there was a second character present
in the symbol character strings, which was not expected here when trimming them off.
This commit is contained in:
Michael
2022-08-04 11:25:19 +10:00
committed by GitHub
parent a0770beb5f
commit c29f12f997
+1 -1
View File
@@ -225,7 +225,7 @@ void writeHeader()
#if defined(PCBFRSKY) || defined(PCBNV14)
for (uint8_t i=1; i<NUM_STICKS+NUM_POTS+NUM_SLIDERS+1; i++) {
const char * p = STR_VSRCRAW[i] + 1;
const char * p = STR_VSRCRAW[i] + 2;
size_t len = strlen(p);
for (uint8_t j=0; j<len; ++j) {
if (!*p) break;