Skip to content

Commit

Permalink
Revert "Add modelId to MSP_PILOT"
Browse files Browse the repository at this point in the history
This reverts commit 52237ee.
  • Loading branch information
egonl committed Sep 7, 2024
1 parent f6095e4 commit e453cd7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/msp/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,6 @@ static bool mspProcessOutCommand(int16_t cmdMSP, sbuf_t *dst)
for (int i = 0; i < nameLen; i++) {
sbufWriteU8(dst, pilotConfig()->name[i]);
}
sbufWriteU8(dst, pilotConfig()->modelId);
}
break;

Expand Down Expand Up @@ -3213,9 +3212,6 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
for (unsigned int i = 0; i < MIN(MAX_NAME_LENGTH, dataSize); i++) {
pilotConfigMutable()->name[i] = sbufReadU8(src);
}
if (sbufBytesRemaining(src) >= 1) {
pilotConfigMutable()->modelId = sbufReadU8(src);
}
#ifdef USE_OSD
osdAnalyzeActiveElements();
#endif
Expand Down

0 comments on commit e453cd7

Please sign in to comment.