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 Dec 28, 2023
1 parent 8377001 commit 4a87200
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 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 @@ -387,11 +388,13 @@ static mspResult_e hdZeroProcessMspCommand(mspPacket_t *cmd, mspPacket_t *reply,

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;
}

// Apparrently no longer rewuires as HDZero will send the MSP/EEPROM "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 4a87200

Please sign in to comment.