Skip to content

Commit

Permalink
MSP_VTX_GET_MODEL_NAME does not need extra byte for string length, us…
Browse files Browse the repository at this point in the history
…e payload length instead.
  • Loading branch information
SumolX committed Jun 14, 2024
1 parent 95149f9 commit e78e18a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/msp_displayport.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,11 +820,9 @@ void msp_send_vtx_model_name() {
uint8_t len = strlen(VTX_NAME);

msp_send_response(0, MSP_HEADER_V2);
crc = msp_send_header_v2(len + 1, MSP_VTX_GET_MODEL_NAME);
crc = msp_send_header_v2(len, MSP_VTX_GET_MODEL_NAME);

// Payload
msp_tx(len);
crc = crc8tab[crc ^ len];
for (i = 0; i < len; ++i) {
msp_tx(VTX_NAME[i]);
crc = crc8tab[crc ^ VTX_NAME[i]];
Expand Down

0 comments on commit e78e18a

Please sign in to comment.