From fcc605cef988fb1061f007afcb7e927c7ae6b70c Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Mon, 12 Dec 2022 20:33:38 +0100 Subject: [PATCH] Reorder functions so we can use heartbeat in grab. --- src/main/io/displayport_msp_osd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/io/displayport_msp_osd.c b/src/main/io/displayport_msp_osd.c index 75210dfea..d1145806b 100644 --- a/src/main/io/displayport_msp_osd.c +++ b/src/main/io/displayport_msp_osd.c @@ -352,17 +352,17 @@ static bool isReady(displayPort_t *displayPort) return vtxActive; } -static int grab(displayPort_t *displayPort) -{ - return heartbeat(displayPort); -} - static int heartbeat(displayPort_t *displayPort) { uint8_t subcmd[] = { MSP_HEARTBEAT }; return output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd)); } +static int grab(displayPort_t *displayPort) +{ + return heartbeat(displayPort); +} + static int release(displayPort_t *displayPort) { uint8_t subcmd[] = { MSP_RELEASE }; -- 2.11.4.GIT