From cc361c7f46554485cc8cd12456f5c132b1f6ae1d Mon Sep 17 00:00:00 2001 From: sorgelig Date: Thu, 3 Oct 2019 23:07:41 +0800 Subject: [PATCH] adjust rotation command. --- osd.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/osd.cpp b/osd.cpp index 8a7a0cf..c18cb28 100644 --- a/osd.cpp +++ b/osd.cpp @@ -595,8 +595,15 @@ void InfoEnable(int x, int y, int width, int height) void OsdRotation(uint8_t rotate) { - if (is_minimig()) return; - spi_osd_cmd_cont(MM1_OSDCMDDISABLE); + if (!is_minimig()) + { + spi_osd_cmd_cont(MM1_OSDCMDDISABLE); + } + else + { + spi_osd_cmd_cont(OSD_CMD_OSD); + spi8(0); + } spi_w(0); spi_w(0); spi_w(0);