From 4a872006e88952da7ca261a5b06c59a44a4a4fd9 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Thu, 28 Dec 2023 10:51:53 -0600 Subject: [PATCH] hdzero - 30hz OSD and dont periodically force-advertise fc-variant --- src/main/io/displayport_hdzero_osd.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/io/displayport_hdzero_osd.c b/src/main/io/displayport_hdzero_osd.c index da5c54db27..180fbb2e9b 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 @@ -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