From a46d72946bfa34b6e7aaa9d5b96a8c84cb09d28b Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:16:54 -0600 Subject: [PATCH] hdzero - 30hz OSD and dont periodically force-advertise fc-variant --- src/main/io/displayport_hdzero_osd.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/io/displayport_hdzero_osd.c b/src/main/io/displayport_hdzero_osd.c index da5c54db27..f825d73b75 100644 --- a/src/main/io/displayport_hdzero_osd.c +++ b/src/main/io/displayport_hdzero_osd.c @@ -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 @@ -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