Skip to content

Commit

Permalink
hdzero - 30hz OSD and dont periodically force-advertise fc-variant
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Jan 3, 2024
1 parent 8377001 commit a46d729
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/main/io/displayport_hdzero_osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ FILE_COMPILE_FOR_SPEED
#define MSP_WRITE_STRING 3
#define MSP_DRAW_SCREEN 4
#define MSP_SET_OPTIONS 5
#define DRAW_FREQ_DENOM 4 // 60Hz
//#define DRAW_FREQ_DENOM 4 // 60Hz
#define DRAW_FREQ_DENOM 8 // 30Hz
#define TX_BUFFER_SIZE 1024
#define VTX_TIMEOUT 1000 // 1 second timer

Expand Down Expand Up @@ -383,15 +384,17 @@ static mspResult_e hdZeroProcessMspCommand(mspPacket_t *cmd, mspPacket_t *reply,
vtxSeen = vtxActive = true;
vtxHeartbeat = millis();

sbuf_t *dst = &reply->buf;
// sbuf_t *dst = &reply->buf;

const uint8_t cmdMSP = cmd->cmd;
reply->cmd = cmd->cmd;
if (cmdMSP == MSP_FC_VARIANT) {
//We advertise as EMUF on this port for the prettier font
sbufWriteData(dst, "EMUF", FLIGHT_CONTROLLER_IDENTIFIER_LENGTH);
return MSP_RESULT_ACK;
}

// Apparently no longer required as HDZero will send the MSP/EEPROM value of "EMUF" fc_variant
// if (cmdMSP == MSP_FC_VARIANT) {
// //We advertise as EMUF on this port for the prettier font
// sbufWriteData(dst, "EMUF", FLIGHT_CONTROLLER_IDENTIFIER_LENGTH);
// return MSP_RESULT_ACK;
// }

// #define MSP_SET_VTXTABLE_BAND 227
// #define MSP_SET_VTXTABLE_POWERLEVEL 228
Expand Down

0 comments on commit a46d729

Please sign in to comment.